[#668] shard: Close stopChannel in GC

It is done once, but now we could read it from multiple places.

Signed-off-by: Evgenii Stratonikov <e.stratonikov@yadro.com>
This commit is contained in:
Evgenii Stratonikov 2023-08-31 16:33:37 +03:00 committed by Evgenii Stratonikov
parent bdecfbc1be
commit 42696016de

View file

@ -220,7 +220,7 @@ func (gc *gc) tickRemover(ctx context.Context) {
func (gc *gc) stop() {
gc.onceStop.Do(func() {
gc.stopChannel <- struct{}{}
close(gc.stopChannel)
})
gc.log.Info(logs.ShardWaitingForGCWorkersToStop)