Commit 9663948
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 90f4aa9 commit 9663948
2 files changed
Lines changed: 5 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1046 | 1046 | | |
1047 | 1047 | | |
1048 | 1048 | | |
| 1049 | + | |
| 1050 | + | |
1049 | 1051 | | |
1050 | 1052 | | |
1051 | 1053 | | |
| |||
1096 | 1098 | | |
1097 | 1099 | | |
1098 | 1100 | | |
1099 | | - | |
1100 | | - | |
1101 | | - | |
1102 | | - | |
1103 | | - | |
| 1101 | + | |
| 1102 | + | |
1104 | 1103 | | |
1105 | 1104 | | |
1106 | 1105 | | |
| |||
0 commit comments