From 100bbcc22a2e4ebc8481463f025e2ddb2062af20 Mon Sep 17 00:00:00 2001 From: hishope Date: Sun, 1 Dec 2024 21:35:24 +0800 Subject: [PATCH] chore: fix some problematic function names Signed-off-by: hishope --- rpcs/ledgerService.go | 2 +- util/execpool/backlog.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/rpcs/ledgerService.go b/rpcs/ledgerService.go index d76273de62..d8f45b3a05 100644 --- a/rpcs/ledgerService.go +++ b/rpcs/ledgerService.go @@ -108,7 +108,7 @@ func (ls *LedgerService) Stop() { } } -// ServerHTTP returns ledgers for a particular round +// ServeHTTP returns ledgers for a particular round // Either /v{version}/{genesisID}/ledger/{round} or ?r={round}&v={version} // Uses gorilla/mux for path argument parsing. func (ls *LedgerService) ServeHTTP(response http.ResponseWriter, request *http.Request) { diff --git a/util/execpool/backlog.go b/util/execpool/backlog.go index c98a2fd427..969587de68 100644 --- a/util/execpool/backlog.go +++ b/util/execpool/backlog.go @@ -102,7 +102,7 @@ func (b *backlog) BufferSize() (length, capacity int) { return len(b.buffer), cap(b.buffer) } -// Enqueue enqueues a single task into the backlog +// EnqueueBacklog enqueues a single task into the backlog func (b *backlog) EnqueueBacklog(enqueueCtx context.Context, t ExecFunc, arg interface{}, out chan interface{}) error { select { case b.buffer <- backlogItemTask{