Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
0xNineteen committed Apr 11, 2024
1 parent 99f2a0f commit 5c233ef
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/accountsdb/download.zig
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ pub fn downloadSnapshotsFromGossip(
const my_contact_info = gossip_service.my_contact_info;
const my_pubkey = my_contact_info.pubkey;

// TODO: maybe make this bigger? or dynamic?
var contact_info_buf: [1_000]ContactInfo = undefined;
var valid_contacts_buf: [1_000]u8 = undefined;
@memset(&valid_contacts_buf, 0);
Expand Down
2 changes: 1 addition & 1 deletion src/cmd/cmd.zig
Original file line number Diff line number Diff line change
Expand Up @@ -770,7 +770,7 @@ fn getOrDownloadSnapshots(
};

const should_download_new_snapshot = force_new_snapshot_download or maybe_snapshot_files == null;
if (should_download_new_snapshot) {
if (should_download_new_snapshot) {
const trusted_validators = try getTrustedValidators(gpa_allocator);
defer if (trusted_validators) |*tvs| tvs.deinit();

Expand Down

0 comments on commit 5c233ef

Please sign in to comment.