Skip to content

Commit

Permalink
fix(discovery) configure sharding every time MetricsHandler.Run runs
Browse files Browse the repository at this point in the history
Signed-off-by: Walther Lee <[email protected]>
  • Loading branch information
wallee94 committed Aug 16, 2024
1 parent 2762759 commit 102f391
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions pkg/metricshandler/metrics_handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -132,14 +132,6 @@ func (m *MetricsHandler) Run(ctx context.Context) error {
return
}

m.mtx.RLock()
shardingUnchanged := m.curShard == shard && m.curTotalShards == totalShards
m.mtx.RUnlock()

if shardingUnchanged {
return
}

m.ConfigureSharding(ctx, shard, totalShards)
},
UpdateFunc: func(oldo, curo interface{}) {
Expand Down

0 comments on commit 102f391

Please sign in to comment.