mirror of
https://github.com/yggdrasil-network/yggdrasil-go.git
synced 2025-04-28 14:15:06 +03:00
add search for successor, via parent, to the dht maintenance cycle
This commit is contained in:
parent
d851d9afe7
commit
3dbffae99f
2 changed files with 33 additions and 2 deletions
|
@ -158,9 +158,9 @@ type switchTable struct {
|
|||
core *Core
|
||||
key sigPubKey // Our own key
|
||||
time time.Time // Time when locator.tstamp was last updated
|
||||
parent switchPort // Port of whatever peer is our parent, or self if we're root
|
||||
drop map[sigPubKey]int64 // Tstamp associated with a dropped root
|
||||
mutex sync.RWMutex // Lock for reads/writes of switchData
|
||||
parent switchPort // Port of whatever peer is our parent, or self if we're root
|
||||
data switchData //
|
||||
updater atomic.Value // *sync.Once
|
||||
table atomic.Value // lookupTable
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue