1
0
mirror of https://github.com/amir20/dozzle.git synced 2025-12-24 06:28:42 +01:00

fix: this fixes a critical bug where multiple stat collectors were competing and never stopping. see #2838 (#2839)

This commit is contained in:
Amir Raminfar
2024-03-21 09:09:01 -07:00
committed by GitHub
parent 83ef59cd88
commit b72ee29aa3
3 changed files with 25 additions and 24 deletions

View File

@@ -224,7 +224,6 @@ func (d *_client) ContainerStats(ctx context.Context, id string, stats chan<- Co
return err
}
log.Debugf("starting to stream stats for: %s", id)
defer response.Body.Close()
decoder := json.NewDecoder(response.Body)
var v *types.StatsJSON