diff --git a/docs/spec/old/indexer.md b/docs/spec/old/indexer.md index 37cd568161..ff2ad99fc1 100644 --- a/docs/spec/old/indexer.md +++ b/docs/spec/old/indexer.md @@ -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) } diff --git a/indexer/inmem/header_store.go b/indexer/inmem/header_store.go index 12068ffd60..9d1e931886 100644 --- a/indexer/inmem/header_store.go +++ b/indexer/inmem/header_store.go @@ -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 { @@ -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 diff --git a/tools/traffic/workers/blob_reader_test.go b/tools/traffic/workers/blob_reader_test.go index ea9d5f0773..181fe8e056 100644 --- a/tools/traffic/workers/blob_reader_test.go +++ b/tools/traffic/workers/blob_reader_test.go @@ -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()