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:
parent
b47eac47c0
commit
84da622775
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user