From 1be18181aaafa7e32daa39b07ffea32deb2d8ce1 Mon Sep 17 00:00:00 2001 From: hopeyen Date: Thu, 19 Dec 2024 10:15:35 -0800 Subject: [PATCH] refactor: camel case --- core/meterer/meterer.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/core/meterer/meterer.go b/core/meterer/meterer.go index e8ebef2db..b3585f6e2 100644 --- a/core/meterer/meterer.go +++ b/core/meterer/meterer.go @@ -210,9 +210,9 @@ func (m *Meterer) ServeOnDemandRequest(ctx context.Context, header core.PaymentM // Update bin usage atomically and check against bin capacity if err := m.IncrementGlobalBinUsage(ctx, uint64(symbolsCharged)); err != nil { //TODO: conditionally remove the payment based on the error type (maybe if the error is store-op related) - db_err := m.OffchainStore.RemoveOnDemandPayment(ctx, header.AccountID, header.CumulativePayment) - if db_err != nil { - return db_err + dbErr := m.OffchainStore.RemoveOnDemandPayment(ctx, header.AccountID, header.CumulativePayment) + if dbErr != nil { + return dbErr } return fmt.Errorf("failed global rate limiting: %w", err) }