mirror of
https://github.com/bingohuang/docker-labs.git
synced 2025-10-05 01:43:22 +08:00
Remove pointer in struct method to avoid concurrent modifications to the (#64)
This commit is contained in:
@@ -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)
|
||||
|
Reference in New Issue
Block a user