@@ -16,6 +16,7 @@ import (
16
16
type ResultApprovals interface {
17
17
18
18
// Store stores a ResultApproval by its ID.
19
+ // No errors are expected during normal operations.
19
20
Store (result * flow.ResultApproval ) error
20
21
21
22
// Index indexes a ResultApproval by result ID and chunk index.
@@ -30,13 +31,14 @@ type ResultApprovals interface {
30
31
// still the method succeeds on each call. However, when attempting to index *different* ResultApproval IDs
31
32
// for the same key (resultID, chunkIndex) this method returns an exception, as this should never happen for
32
33
// a correct Verification Node indexing its own approvals.
34
+ // No errors are expected during normal operations.
33
35
Index (resultID flow.Identifier , chunkIndex uint64 , approvalID flow.Identifier ) error
34
36
35
37
// ByID retrieves a ResultApproval by its ID.
36
- // Returns ` storage.ErrNotFound` if no Approval with the given ID has been stored.
38
+ // Returns [ storage.ErrNotFound] if no Approval with the given ID has been stored.
37
39
ByID (approvalID flow.Identifier ) (* flow.ResultApproval , error )
38
40
39
41
// ByChunk retrieves a ResultApproval by result ID and chunk index.
40
- // Returns ` storage.ErrNotFound` if no Approval for the given key (resultID, chunkIndex) has been stored.
42
+ // Returns [ storage.ErrNotFound] if no Approval for the given key (resultID, chunkIndex) has been stored.
41
43
ByChunk (resultID flow.Identifier , chunkIndex uint64 ) (* flow.ResultApproval , error )
42
44
}
0 commit comments