Maint: improve http proxy loop Run

This commit is contained in:
Quentin McGaw (desktop)
2021-07-26 01:42:37 +00:00
parent 037b43ee10
commit d5ba15c23b
2 changed files with 18 additions and 17 deletions

View File

@@ -31,6 +31,7 @@ type Loop struct {
running chan models.LoopStatus
stop, stopped chan struct{}
start chan struct{}
userTrigger bool
backoffTime time.Duration
}
@@ -54,6 +55,7 @@ func NewLoop(logger logging.Logger, settings configuration.HTTPProxy) *Loop {
running: running,
stop: stop,
stopped: stopped,
userTrigger: true,
backoffTime: defaultBackoffTime,
}
}