diff --git a/primitives/net/http/errors.go b/primitives/net/http/errors.go index 63fb33bde8..7661ebeba6 100644 --- a/primitives/net/http/errors.go +++ b/primitives/net/http/errors.go @@ -39,7 +39,7 @@ type TimeoutError interface { Timeout() bool } -// isTimeout checks if the given error is a timeout error. +// IsTimeoutError checks if the given error is a timeout error. // It asserts the error to the httpTimeoutError interface and checks its Timeout // status. // Returns true if the error is a timeout error, false otherwise. diff --git a/storage/block/store.go b/storage/block/store.go index 5be1900e76..9ab1a3916e 100644 --- a/storage/block/store.go +++ b/storage/block/store.go @@ -84,7 +84,7 @@ func (kv *KVStore[BeaconBlockT]) Set(blk BeaconBlockT) error { return nil } -// GetSlotByRoot retrieves the slot by a given block root from the store. +// GetSlotByBlockRoot retrieves the slot by a given block root from the store. func (kv *KVStore[BeaconBlockT]) GetSlotByBlockRoot( blockRoot common.Root, ) (math.Slot, error) {