From ccfdcde341e379d449ac4b61cefc503e92a094d7 Mon Sep 17 00:00:00 2001 From: ZhengXingRu Date: Tue, 10 Dec 2024 02:37:30 +0800 Subject: [PATCH] chore: fix some function names in comment (#2229) Signed-off-by: standstaff --- primitives/net/http/errors.go | 2 +- storage/block/store.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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) {