Commit 3de9287
committed
go/worker/storage/committee: Fix worker teardown
Previously the fetch pool was closed first, which caused doneCh
to never be closed, which cause wg.Wait to never finish.
There is no need for the doneCh as fetchPool.Stop already ensures
all worker threads have stopped, and the queue of pending tasks
is emptied. In other words we are guranteed no side effects.1 parent 209fcc9 commit 3de9287
2 files changed
Lines changed: 2 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1086 | 1086 | | |
1087 | 1087 | | |
1088 | 1088 | | |
1089 | | - | |
| 1089 | + | |
1090 | 1090 | | |
1091 | 1091 | | |
1092 | | - | |
1093 | | - | |
1094 | | - | |
1095 | 1092 | | |
1096 | 1093 | | |
1097 | 1094 | | |
| |||
0 commit comments