mirror of
https://github.com/amir20/dozzle.git
synced 2025-12-24 06:28:42 +01:00
fix: improves memory leak in new container stream (#3076)
This commit is contained in:
@@ -174,6 +174,10 @@ func (m *MultiHostService) SubscribeContainersStarted(ctx context.Context, conta
|
||||
for _, client := range m.clients {
|
||||
client.SubscribeContainersStarted(ctx, newContainers)
|
||||
}
|
||||
go func() {
|
||||
<-ctx.Done()
|
||||
close(newContainers)
|
||||
}()
|
||||
|
||||
go func() {
|
||||
for container := range newContainers {
|
||||
|
||||
Reference in New Issue
Block a user