Skip to content

Commit c26fc13

Browse files
committed
update comments
1 parent c046245 commit c26fc13

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

storage/epoch_protocol_state.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,13 @@ type EpochProtocolStateEntries interface {
3434
//
3535
// CAUTION:
3636
// - The caller must acquire the lock [storage.LockInsertBlock] and hold it until the database write has been committed.
37-
// - OVERWRITES existing data (potential for data corruption):
38-
// The lock proof serves as a reminder that the CALLER is responsible to ensure that the DEDUPLICATION CHECK is done elsewhere
39-
// ATOMICALLY within this write operation. Currently it's done by operation.InsertHeader where it performs a check
40-
// to ensure the blockID is new, therefore any data indexed by this blockID is new as well.
37+
// - OVERWRITES existing data (potential for data corruption):
38+
// The lock proof serves as a reminder that the CALLER is responsible to ensure that the DEDUPLICATION CHECK is done elsewhere
39+
// ATOMICALLY within this write operation. Currently it's done by operation.InsertHeader where it performs a check
40+
// to ensure the blockID is new, therefore any data indexed by this blockID is new as well.
4141
//
4242
// Expected errors during normal operations:
43-
// No expected errors during normal operations.
43+
// No expected errors during normal operations.
4444
BatchIndex(lctx lockctx.Proof, rw ReaderBatchWriter, blockID flow.Identifier, epochProtocolStateID flow.Identifier) error
4545

4646
// ByID returns the flow.RichEpochStateEntry by its ID.

0 commit comments

Comments
 (0)