Skip to content

Commit

Permalink
fix: style
Browse files Browse the repository at this point in the history
  • Loading branch information
dnut committed Jan 22, 2025
1 parent 76502ad commit 7185a91
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/ledger/tests.zig
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@ const DirectPrintLogger = sig.trace.DirectPrintLogger;
const Logger = sig.trace.Logger;
const SlotMeta = ledger.meta.SlotMeta;
const VersionedTransactionWithStatusMeta = ledger.reader.VersionedTransactionWithStatusMeta;

const comptimePrint = std.fmt.comptimePrint;
const insertShredsForTest = ledger.shred_inserter.shred_inserter.insertShredsForTest;

const schema = ledger.schema.schema;

Expand Down Expand Up @@ -397,11 +399,11 @@ pub fn insertDataForBlockTest(state: *TestState) !InsertDataForBlockResult {
deinitShreds(allocator, slice);
};

var result = try ledger.shred_inserter.shred_inserter.insertShredsForTest(&inserter, shreds);
var result = try insertShredsForTest(&inserter, shreds);
result.deinit();
result = try ledger.shred_inserter.shred_inserter.insertShredsForTest(&inserter, more_shreds);
result = try insertShredsForTest(&inserter, more_shreds);
result.deinit();
result = try ledger.shred_inserter.shred_inserter.insertShredsForTest(&inserter, unrooted_shreds);
result = try insertShredsForTest(&inserter, unrooted_shreds);
result.deinit();

try writer.setRoots(&.{ slot - 1, slot, slot + 1 });
Expand Down

0 comments on commit 7185a91

Please sign in to comment.