Skip to content

Commit b8f8d64

Browse files
committed
updated mocks
1 parent b9fbca4 commit b8f8d64

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

storage/mock/blocks.go

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

storage/procedure/index.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,10 @@ func InsertIndex(lctx lockctx.Proof, rw storage.ReaderBatchWriter, blockID flow.
2828
return fmt.Errorf("missing required lock: %s", storage.LockInsertBlock)
2929
}
3030

31-
// The following database operations are all indexing data by block ID,
32-
// they don't need to check if the data is already stored, because the same check has been done
33-
// when storing the block header, which is in the same batch update and holding the same lock.
34-
// if there is no header stored for the block ID, it means no index data for the same block ID
31+
// The following database operations are all indexing data by block ID. If used correctly,
32+
// we don't need to check here if the data is already stored, because the same check should have
33+
// been done when storing the block header, which is in the same batch update and holding the same lock.
34+
// If there is no header stored for the block ID, it means no index data for the same block ID
3535
// was stored either, as long as the same lock is held, the data is guaranteed to be consistent.
3636
w := rw.Writer()
3737
err := operation.IndexPayloadGuarantees(lctx, w, blockID, index.GuaranteeIDs)

0 commit comments

Comments
 (0)