From 84da622775738f0d5c36499a8f0ea1f9150c2e94 Mon Sep 17 00:00:00 2001 From: Marcos Nils Date: Fri, 2 Dec 2016 02:19:49 +0200 Subject: [PATCH] Remove pointer in struct method to avoid concurrent modifications to the (#64) --- services/collect_stats_task.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/collect_stats_task.go b/services/collect_stats_task.go index 28ce5a8..13b7d43 100644 --- a/services/collect_stats_task.go +++ b/services/collect_stats_task.go @@ -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)