Skip to content

Commit

Permalink
Merge pull request #524 from szpnygo/feature/fix_collect_not_use_config
Browse files Browse the repository at this point in the history
fix the collect not use the config time
  • Loading branch information
mfanjie authored Aug 29, 2022
2 parents 0412dba + 7948e7a commit e80b382
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/ensurance/collector/collector.go
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ func (s *StateCollector) Run(stop <-chan struct{}) {

// do collect periodically
go func() {
updateTicker := time.NewTicker(10 * time.Second)
updateTicker := time.NewTicker(s.collectInterval)
defer updateTicker.Stop()
for {
select {
Expand Down

0 comments on commit e80b382

Please sign in to comment.