mirror of
https://github.com/portainer/portainer.git
synced 2025-08-02 20:35:25 +02:00
fix(snapshot): update snapshot interval (#4789)
* fix(snapshot): update snapshot interval * style(snapshot): add clarification about clearing signal
This commit is contained in:
parent
387bbeceba
commit
4a1a46c8c1
1 changed files with 3 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue