mirror of
https://github.com/tailscale/tailscale.git
synced 2025-12-03 00:11:35 +01:00
control/controlclient: remove unused reference to mapCtx (#17614)
Updates #cleanup Signed-off-by: James Sanderson <jsanderson@tailscale.com>
This commit is contained in:
parent
adee8b9180
commit
b6c6960e40
@ -433,7 +433,6 @@ func (mrs mapRoutineState) UpdateFullNetmap(nm *netmap.NetworkMap) {
|
||||
c := mrs.c
|
||||
|
||||
c.mu.Lock()
|
||||
ctx := c.mapCtx
|
||||
c.inMapPoll = true
|
||||
if c.loggedIn {
|
||||
c.state = StateSynchronized
|
||||
@ -447,7 +446,7 @@ func (mrs mapRoutineState) UpdateFullNetmap(nm *netmap.NetworkMap) {
|
||||
c.sendStatus("mapRoutine-got-netmap", nil, "", nm)
|
||||
}
|
||||
// Reset the backoff timer if we got a netmap.
|
||||
mrs.bo.BackOff(ctx, nil)
|
||||
mrs.bo.Reset()
|
||||
}
|
||||
|
||||
func (mrs mapRoutineState) UpdateNetmapDelta(muts []netmap.NodeMutation) bool {
|
||||
|
||||
@ -78,3 +78,9 @@ func (b *Backoff) BackOff(ctx context.Context, err error) {
|
||||
case <-tChannel:
|
||||
}
|
||||
}
|
||||
|
||||
// Reset resets the backoff schedule, equivalent to calling BackOff with a nil
|
||||
// error.
|
||||
func (b *Backoff) Reset() {
|
||||
b.n = 0
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user