forked from TrueCloudLab/frostfs-node
[#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:
parent
bdecfbc1be
commit
42696016de
1 changed files with 1 additions and 1 deletions
|
@ -220,7 +220,7 @@ func (gc *gc) tickRemover(ctx context.Context) {
|
||||||
|
|
||||||
func (gc *gc) stop() {
|
func (gc *gc) stop() {
|
||||||
gc.onceStop.Do(func() {
|
gc.onceStop.Do(func() {
|
||||||
gc.stopChannel <- struct{}{}
|
close(gc.stopChannel)
|
||||||
})
|
})
|
||||||
|
|
||||||
gc.log.Info(logs.ShardWaitingForGCWorkersToStop)
|
gc.log.Info(logs.ShardWaitingForGCWorkersToStop)
|
||||||
|
|
Loading…
Reference in a new issue