[#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
parent b532c99f9c
commit b7694b6f45

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)