Skip to content
This repository has been archived by the owner on Sep 23, 2023. It is now read-only.

Commit

Permalink
leak detector
Browse files Browse the repository at this point in the history
  • Loading branch information
AskAlexSharov committed May 8, 2023
1 parent e8b81de commit 9c3967c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion kv/mdbx/kv_mdbx.go
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,7 @@ func (opts MdbxOpts) Open() (kv.RwDB, error) {
txSize: dirtyPagesLimit * opts.pageSize,
roTxsLimiter: opts.roTxsLimiter,

leakDetector: dbg.NewLeakDetector("db."+opts.label.String(), dbg.DetectLeak()),
leakDetector: dbg.NewLeakDetector("db."+opts.label.String(), dbg.SlowTx()),
}

customBuckets := opts.bucketsCfg(kv.ChaindataTablesCfg)
Expand Down
2 changes: 1 addition & 1 deletion state/aggregator_v3.go
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ func NewAggregatorV3(ctx context.Context, dir, tmpdir string, aggregationStep ui
aggregationStep: aggregationStep,
db: db,
keepInDB: 2 * aggregationStep,
leakDetector: dbg.NewLeakDetector("agg", dbg.DetectLeak()),
leakDetector: dbg.NewLeakDetector("agg", dbg.SlowTx()),
ps: background.NewProgressSet(),
backgroundResult: &BackgroundResult{},
}
Expand Down

0 comments on commit 9c3967c

Please sign in to comment.