From 1748e8bdca91627f68f4d20006f638097677a02f Mon Sep 17 00:00:00 2001 From: linchizhen Date: Fri, 17 Jan 2025 17:11:34 +0800 Subject: [PATCH] chore: fix some function names in comment Signed-off-by: linchizhen --- arbnode/batch_poster.go | 2 +- arbnode/delay_buffer.go | 2 +- cmd/genericconf/logging.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/arbnode/batch_poster.go b/arbnode/batch_poster.go index 70c5952042..7e87d9a05e 100644 --- a/arbnode/batch_poster.go +++ b/arbnode/batch_poster.go @@ -539,7 +539,7 @@ func (b *BatchPoster) getTxsInfoByBlock(ctx context.Context, number int64) ([]tx return blk.Transactions, nil } -// checkRevert checks blocks with number in range [from, to] whether they +// checkReverts checks blocks with number in range [from, to] whether they // contain reverted batch_poster transaction. // It returns true if it finds batch posting needs to halt, which is true if a batch reverts // unless the data poster is configured with noop storage which can tolerate reverts. diff --git a/arbnode/delay_buffer.go b/arbnode/delay_buffer.go index 3f0514bbe2..f2d73076ef 100644 --- a/arbnode/delay_buffer.go +++ b/arbnode/delay_buffer.go @@ -26,7 +26,7 @@ type DelayBufferConfig struct { Threshold uint64 } -// GetBufferConfig gets the delay buffer config from the sequencer inbox contract. +// GetDelayBufferConfig gets the delay buffer config from the sequencer inbox contract. // If the contract doesn't support the delay buffer, it returns a config with Enabled set to false. func GetDelayBufferConfig(ctx context.Context, sequencerInbox *bridgegen.SequencerInbox) ( *DelayBufferConfig, error) { diff --git a/cmd/genericconf/logging.go b/cmd/genericconf/logging.go index 4cdaa5f3e8..a7a4fa88d5 100644 --- a/cmd/genericconf/logging.go +++ b/cmd/genericconf/logging.go @@ -89,7 +89,7 @@ func (l *fileLoggerFactory) close() error { return nil } -// initLog is not threadsafe +// InitLog is not threadsafe func InitLog(logType string, logLevel string, fileLoggingConfig *FileLoggingConfig, pathResolver func(string) string) error { var glogger *log.GlogHandler // always close previous instance of file logger