mirror of https://github.com/portainer/portainer
fix(snapshot): update snapshot interval (#4789)
* fix(snapshot): update snapshot interval * style(snapshot): add clarification about clearing signalpull/4889/head
parent
387bbeceba
commit
4a1a46c8c1
|
@ -4,7 +4,7 @@ import (
|
|||
"log"
|
||||
"time"
|
||||
|
||||
"github.com/portainer/portainer/api"
|
||||
portainer "github.com/portainer/portainer/api"
|
||||
)
|
||||
|
||||
// Service repesents a service to manage endpoint snapshots.
|
||||
|
@ -48,7 +48,9 @@ func (service *Service) stop() {
|
|||
return
|
||||
}
|
||||
|
||||
// clear refreshSignal to mark the service as disabled
|
||||
close(service.refreshSignal)
|
||||
service.refreshSignal = nil
|
||||
}
|
||||
|
||||
// SetSnapshotInterval sets the snapshot interval and resets the service
|
||||
|
|
Loading…
Reference in New Issue