mirror of
https://github.com/weaveworks/scope.git
synced 2026-07-28 09:41:57 +00:00
Review Feedback
This commit is contained in:
@@ -22,6 +22,7 @@ type Interface interface {
|
||||
Start()
|
||||
Stop()
|
||||
SetInitialBackoff(time.Duration)
|
||||
SetMaxBackoff(time.Duration)
|
||||
}
|
||||
|
||||
// New makes a new Interface
|
||||
@@ -40,6 +41,10 @@ func (b *backoff) SetInitialBackoff(d time.Duration) {
|
||||
b.initialBackoff = d
|
||||
}
|
||||
|
||||
func (b *backoff) SetMaxBackoff(d time.Duration) {
|
||||
b.maxBackoff = d
|
||||
}
|
||||
|
||||
// Stop the backoff, and waits for it to stop.
|
||||
func (b *backoff) Stop() {
|
||||
close(b.quit)
|
||||
|
||||
Reference in New Issue
Block a user