Skip to content

Commit d98eb49

Browse files
author
Aaron Schlesinger
committed
ref(pkg/cleaner/cleaner.go): rename sleep duration variable
1 parent fa668a9 commit d98eb49

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

pkg/cleaner/cleaner.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,9 +69,9 @@ func getDisjunction(namespaceList []api.Namespace, dirs []string) []string {
6969
return ret
7070
}
7171

72-
// Run starts the deleted app cleaner. Every pollInterval, it compares the result of nsLister.List with the directories in the top level of gitHome on the local file system. On any error, it uses log.Debug to output a human readable description of what happened.
72+
// Run starts the deleted app cleaner. Every pollSleepDuration, it compares the result of nsLister.List with the directories in the top level of gitHome on the local file system. On any error, it uses log.Debug to output a human readable description of what happened.
7373
// TODO: locking mechanism on repositories. Nobody should be able to push to a repo while one is being deleted
74-
func Run(gitHome string, nsLister k8s.NamespaceLister, pollInterval time.Duration) error {
74+
func Run(gitHome string, nsLister k8s.NamespaceLister, pollSleepDuration time.Duration) error {
7575
for {
7676
nsList, err := nsLister.List(labels.Everything(), fields.Everything())
7777
if err != nil {
@@ -91,6 +91,6 @@ func Run(gitHome string, nsLister k8s.NamespaceLister, pollInterval time.Duratio
9191
}
9292
}
9393

94-
time.Sleep(pollInterval)
94+
time.Sleep(pollSleepDuration)
9595
}
9696
}

0 commit comments

Comments
 (0)