Skip to content

Commit

Permalink
cleanup debug log
Browse files Browse the repository at this point in the history
  • Loading branch information
magicxyyz committed Feb 23, 2024
1 parent 3e1f80f commit af4fb22
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions arbitrum/apibackend.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import (
"math/big"
"strconv"
"strings"
"sync/atomic"
"time"

"github.com/ethereum/go-ethereum"
Expand Down Expand Up @@ -46,8 +45,6 @@ type APIBackend struct {

fallbackClient types.FallbackClient
sync SyncProgressBackend

recreatedStateFinalizers atomic.Int64
}

type timeoutFallbackClient struct {
Expand Down Expand Up @@ -518,14 +515,9 @@ func (a *APIBackend) stateAndHeaderFromHeader(ctx context.Context, header *types
}
// we are setting finalizer instead of returning a StateReleaseFunc to avoid changing ethapi.Backend interface to minimize diff to upstream
recreatedStatesCounter.Inc(1)
a.recreatedStateFinalizers.Add(1)
statedb.SetRelease(func() {
// TODO remove logs and counters
a.recreatedStateFinalizers.Add(-1)
log.Warn("Recreated state release called", "recreatedStateFinalizers", a.recreatedStateFinalizers.Load())
release()
})
log.Warn("Recreated state release set", "recreatedStateFinalizers", a.recreatedStateFinalizers.Load())
return statedb, header, err
}

Expand Down

0 comments on commit af4fb22

Please sign in to comment.