1
0
mirror of https://github.com/bingohuang/docker-labs.git synced 2025-07-15 02:37:27 +08:00

Remove pointer in struct method to avoid concurrent modifications to the (#64)

This commit is contained in:
Marcos Nils 2016-12-02 02:19:49 +02:00 committed by GitHub
parent b47eac47c0
commit 84da622775

View File

@ -20,7 +20,7 @@ type collectStatsTask struct {
previousSystem uint64
}
func (c *collectStatsTask) Run(i *Instance) {
func (c collectStatsTask) Run(i *Instance) {
reader, err := GetContainerStats(i.Name)
if err != nil {
log.Println("Error while trying to collect instance stats", err)