Skip to content

Commit

Permalink
statistics: remove reassignment of Handle.pool in NewHandle (#30675)
Browse files Browse the repository at this point in the history
  • Loading branch information
xuyifangreeneyes committed Dec 15, 2021
1 parent 813f6ef commit 0d0805d
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 @@ -203,7 +203,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 0d0805d

Please sign in to comment.