mirror of
https://github.com/fatedier/frp.git
synced 2026-05-15 08:05:49 -06:00
fix lint (#3877)
This commit is contained in:
parent
3bf6605e1a
commit
5e77c8e2d3
5 changed files with 6 additions and 18 deletions
|
|
@ -326,14 +326,13 @@ func (svr *Service) loopLoginUntilSuccess(maxInterval time.Duration, firstLoginE
|
|||
}
|
||||
svr.ctl = ctl
|
||||
svr.ctlMu.Unlock()
|
||||
|
||||
return true, nil
|
||||
}
|
||||
|
||||
// try to reconnect to server until success
|
||||
wait.BackoffUntil(loginFunc, wait.NewFastBackoffManager(
|
||||
wait.FastBackoffOptions{
|
||||
Duration: time.Second,
|
||||
Duration: time.Millisecond,
|
||||
Factor: 2,
|
||||
Jitter: 0.1,
|
||||
MaxDuration: maxInterval,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue