Commit 7001cec
committed
sweepbatcher: cancel spendCtx after processing
Function monitorSpendAndNotify used to cancel the context passed to
RegisterSpendNtfn right after starting the goroutine processing results.
Spend notifications were missed.
Now the context is canceled when the goroutine finishes.1 parent b7f9127 commit 7001cec
1 file changed
+5
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1129 | 1129 | | |
1130 | 1130 | | |
1131 | 1131 | | |
1132 | | - | |
1133 | 1132 | | |
1134 | 1133 | | |
1135 | 1134 | | |
1136 | 1135 | | |
| 1136 | + | |
| 1137 | + | |
1137 | 1138 | | |
1138 | 1139 | | |
1139 | 1140 | | |
| |||
1142 | 1143 | | |
1143 | 1144 | | |
1144 | 1145 | | |
| 1146 | + | |
| 1147 | + | |
1145 | 1148 | | |
1146 | 1149 | | |
1147 | 1150 | | |
1148 | 1151 | | |
1149 | 1152 | | |
| 1153 | + | |
1150 | 1154 | | |
1151 | 1155 | | |
1152 | 1156 | | |
| |||
0 commit comments