mirror of
https://github.com/cwinfo/yggdrasil-go.git
synced 2024-11-22 15:20:30 +00:00
Merge branch 'pathfinder' of https://github.com/Arceliar/yggdrasil-go into pathfinder
This commit is contained in:
commit
78073429a2
@ -90,6 +90,7 @@ func (t *dht) reconfigure() {
|
|||||||
// Resets the DHT in response to coord changes.
|
// Resets the DHT in response to coord changes.
|
||||||
// This empties all info from the DHT and drops outstanding requests.
|
// This empties all info from the DHT and drops outstanding requests.
|
||||||
func (t *dht) reset() {
|
func (t *dht) reset() {
|
||||||
|
t.reqs = make(map[dhtReqKey]time.Time)
|
||||||
for _, info := range t.table {
|
for _, info := range t.table {
|
||||||
if t.isImportant(info) {
|
if t.isImportant(info) {
|
||||||
t.ping(info, nil) // This will source route if a path is already known
|
t.ping(info, nil) // This will source route if a path is already known
|
||||||
|
Loading…
Reference in New Issue
Block a user