Skip to content

Commit 2896d6b

Browse files
committed
rename
1 parent 1347370 commit 2896d6b

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

tailnet/configmaps.go

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -56,11 +56,11 @@ type phased struct {
5656

5757
type configMaps struct {
5858
phased
59-
netmapDirty bool
60-
derpMapDirty bool
61-
filterDirty bool
62-
closing bool
63-
waitForHandshake bool
59+
netmapDirty bool
60+
derpMapDirty bool
61+
filterDirty bool
62+
closing bool
63+
waitReadyForHandshake bool
6464

6565
engine engineConfigurable
6666
static netmap.NetworkMap
@@ -219,7 +219,7 @@ func (c *configMaps) peerConfigLocked() []*tailcfg.Node {
219219
for _, p := range c.peers {
220220
// Don't add nodes that we havent received a READY_FOR_HANDSHAKE for
221221
// yet, if we want to wait for them.
222-
if !p.readyForHandshake && c.waitForHandshake {
222+
if !p.readyForHandshake && c.waitReadyForHandshake {
223223
continue
224224
}
225225
n := p.node.Clone()
@@ -234,7 +234,7 @@ func (c *configMaps) peerConfigLocked() []*tailcfg.Node {
234234
func (c *configMaps) setWaitForHandshake(wait bool) {
235235
c.L.Lock()
236236
defer c.L.Unlock()
237-
c.waitForHandshake = wait
237+
c.waitReadyForHandshake = wait
238238
}
239239

240240
// setAddresses sets the addresses belonging to this node to the given slice. It
@@ -413,9 +413,9 @@ func (c *configMaps) updatePeerLocked(update *proto.CoordinateResponse_PeerUpdat
413413
node: node,
414414
lastHandshake: lastHandshake,
415415
lost: false,
416-
readyForHandshake: !c.waitForHandshake,
416+
readyForHandshake: !c.waitReadyForHandshake,
417417
}
418-
if c.waitForHandshake {
418+
if c.waitReadyForHandshake {
419419
lc.readyForHandshakeTimer = c.clock.AfterFunc(5*time.Second, func() {
420420
logger.Debug(context.Background(), "ready for handshake timeout")
421421
c.peerReadyForHandshakeTimeout(id)

0 commit comments

Comments
 (0)