From 6b51b44cbf760c3c89a46d4d37393b4e3aa85fb6 Mon Sep 17 00:00:00 2001 From: Arceliar Date: Wed, 16 May 2018 17:36:37 -0500 Subject: [PATCH] slightly better variable naming --- src/yggdrasil/dht.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/yggdrasil/dht.go b/src/yggdrasil/dht.go index 6c9b02a7..2f7c2663 100644 --- a/src/yggdrasil/dht.go +++ b/src/yggdrasil/dht.go @@ -469,14 +469,14 @@ func (t *dht) doMaintenance() { continue } // This is a good spot to check if a node is worth pinging - add := len(b.other) < dht_bucket_size + doPing := len(b.other) < dht_bucket_size for _, info := range b.other { if dht_firstCloserThanThird(rumor.info.getNodeID(), &t.nodeID, info.getNodeID()) { // Add the node if they are closer to us than someone in the same bucket - add = true + doPing = true } } - if !add { + if !doPing { continue } }