mirror of
https://github.com/yggdrasil-network/yggdrasil-go.git
synced 2025-04-28 22:25:07 +03:00
adjust when dht reqs are reset
This commit is contained in:
parent
428789f24c
commit
939ffb02f8
1 changed files with 1 additions and 0 deletions
|
@ -89,6 +89,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)
|
t.ping(info, nil)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue