Skip to content

Commit

Permalink
chore: fix some function names in comment
Browse files Browse the repository at this point in the history
Signed-off-by: toofooboo <[email protected]>
  • Loading branch information
toofooboo committed Dec 20, 2024
1 parent 6059c6a commit febda1b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion docs/spec/old/indexer.md
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ type HeaderStore interface{
// GetObject takes in a header and retrieves the accumulator object attached to the latest header prior to the supplied header having the requested object type.
GetObject(header Header, acc Accumulator) (AccumulatorObject, Header, error)

// GetObject retrieves the accumulator object attached to the latest header having the requested object type.
// GetLatestObject retrieves the accumulator object attached to the latest header having the requested object type.
GetLatestObject(acc Accumulator) (AccumulatorObject, Header, error)

}
Expand Down
4 changes: 2 additions & 2 deletions indexer/inmem/header_store.go
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ func (h *HeaderStore) GetObject(header *indexer.Header, acc indexer.Accumulator)
return obj, myHeader.Header, nil
}

// GetObject retrieves the accumulator object attached to the latest header having the requested object type.
// GetLatestObject retrieves the accumulator object attached to the latest header having the requested object type.
func (h *HeaderStore) GetLatestObject(acc indexer.Accumulator, finalized bool) (indexer.AccumulatorObject, *indexer.Header, error) {
header, err := h.GetLatestHeader(finalized)
if err != nil {
Expand All @@ -221,7 +221,7 @@ func (h *HeaderStore) GetLatestObject(acc indexer.Accumulator, finalized bool) (
return h.GetObject(header, acc)
}

// GetObject retrieves the accumulator object attached to the latest header having the requested object type.
// FastForward retrieves the accumulator object attached to the latest header having the requested object type.
func (h *HeaderStore) FastForward() error {
h.Chain = make([]*Header, 0)
return nil
Expand Down
2 changes: 1 addition & 1 deletion tools/traffic/workers/blob_reader_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import (
"golang.org/x/exp/rand"
)

// TestBlobReaderNoOptionalReads tests the BlobReader's basic functionality'
// TestBlobReader tests the BlobReader's basic functionality'
func TestBlobReader(t *testing.T) {
tu.InitializeRandom()

Expand Down

0 comments on commit febda1b

Please sign in to comment.