mirror of
https://github.com/yggdrasil-network/yggdrasil-go.git
synced 2025-04-29 06:35:07 +03:00
SPelling fix in dht.go
This commit is contained in:
parent
3bebc6d334
commit
74ddcff848
1 changed files with 2 additions and 1 deletions
|
@ -145,7 +145,8 @@ func (t *dht) insertPeer(info *dhtInfo) {
|
|||
oldInfo, isIn := t.table[*info.getNodeID()]
|
||||
if !isIn || time.Since(oldInfo.recv) > dht_max_delay+30*time.Second {
|
||||
// TODO? also check coords?
|
||||
t.insert(info)
|
||||
newInfo := *info // Insert a copy
|
||||
t.insert(&newInfo)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue