Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cmd/thanos/receive: fix close chan panic (#1595)
* cmd/thanos/receive: fix close chan panic This commit fixes a panic caused by sending on the chan which is closed too early. This chan was closed when the setup func returned, rather than when the group's goroutine returned. Fixes: #1594 Signed-off-by: Lucas Servén Marín <[email protected]> * cmd/thanos/receive: correctly clean up uploader This commit fixes how the uploader is cleaned up. Currently, it was cleaned up in a defer block that was run before the run groups. This ensures the cleanup occurs only when the run groups are returning. Signed-off-by: Lucas Servén Marín <[email protected]>
- Loading branch information