Skip to content

Commit

Permalink
remove reassignment of Handle.pool in NewHandle
Browse files Browse the repository at this point in the history
  • Loading branch information
xuyifangreeneyes committed Dec 13, 2021
1 parent b876788 commit 7d9e625
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion statistics/handle/handle.go
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,6 @@ func NewHandle(ctx sessionctx.Context, lease time.Duration, pool sessionPool) (*
pool: pool,
}
handle.lease.Store(lease)
handle.pool = pool
handle.statsCache.memTracker = memory.NewTracker(memory.LabelForStatsCache, -1)
handle.mu.ctx = ctx
handle.mu.rateMap = make(errorRateDeltaMap)
Expand Down

0 comments on commit 7d9e625

Please sign in to comment.