mirror of
https://github.com/moby/moby.git
synced 2026-01-11 18:51:37 +00:00
Extract daemon statsCollector to its own package
Signed-off-by: Vincent Demeester <vincent@sbr.pm>
This commit is contained in:
@@ -133,11 +133,11 @@ func (daemon *Daemon) ContainerStats(ctx context.Context, prefixOrName string, c
|
||||
}
|
||||
|
||||
func (daemon *Daemon) subscribeToContainerStats(c *container.Container) chan interface{} {
|
||||
return daemon.statsCollector.collect(c)
|
||||
return daemon.statsCollector.Collect(c)
|
||||
}
|
||||
|
||||
func (daemon *Daemon) unsubscribeToContainerStats(c *container.Container, ch chan interface{}) {
|
||||
daemon.statsCollector.unsubscribe(c, ch)
|
||||
daemon.statsCollector.Unsubscribe(c, ch)
|
||||
}
|
||||
|
||||
// GetContainerStats collects all the stats published by a container
|
||||
|
||||
Reference in New Issue
Block a user