Commit ac53892
Pass the correct flush reason to closeHead()
Pass the reason from `shouldFlushChunk()` to `closeHead()`;
sending `reasonImmediate` was a bug.
We don't need to check `len(chunks)` is non-zero, since that would
return `noFlush` from `shouldFlushSeries()`.
Signed-off-by: Bryan Boreham <bryan@weave.works>1 parent 7615b85 commit ac53892
1 file changed
+5
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
290 | 290 | | |
291 | 291 | | |
292 | 292 | | |
293 | | - | |
| 293 | + | |
294 | 294 | | |
295 | | - | |
| 295 | + | |
296 | 296 | | |
| 297 | + | |
| 298 | + | |
297 | 299 | | |
| 300 | + | |
298 | 301 | | |
299 | 302 | | |
300 | 303 | | |
| |||
0 commit comments