From 03086af255fb012b457f9e54e6c04ea21d1809e9 Mon Sep 17 00:00:00 2001 From: zhuhaicity Date: Sun, 12 Jan 2025 16:48:23 +0800 Subject: [PATCH] chore: fix function name and comment Signed-off-by: zhuhaicity --- core/meterer/meterer.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/meterer/meterer.go b/core/meterer/meterer.go index c4673bb99..01b991456 100644 --- a/core/meterer/meterer.go +++ b/core/meterer/meterer.go @@ -269,7 +269,7 @@ func (m *Meterer) SymbolsCharged(numSymbols uint) uint32 { return uint32(core.RoundUpDivide(uint(numSymbols), uint(m.ChainPaymentState.GetMinNumSymbols()))) * m.ChainPaymentState.GetMinNumSymbols() } -// IncrementBinUsage increments the bin usage atomically and checks for overflow +// IncrementGlobalBinUsage increments the global bin usage atomically and checks for overflow func (m *Meterer) IncrementGlobalBinUsage(ctx context.Context, symbolsCharged uint64) error { globalPeriod := GetReservationPeriod(uint64(time.Now().Unix()), m.ChainPaymentState.GetGlobalRatePeriodInterval())