diff options
author | Péter Szilágyi <peterke@gmail.com> | 2015-04-27 22:38:28 +0800 |
---|---|---|
committer | Péter Szilágyi <peterke@gmail.com> | 2015-04-27 22:38:28 +0800 |
commit | 437cf4b3acf1b5a4efde64aacaacdf14289010d1 (patch) | |
tree | aea6cf153def4fae3ef217ac9112334fc8de2067 /p2p/discover/table.go | |
parent | a136e2bb222ed0eaa9b5e5a31a07fcc664de8eb7 (diff) | |
download | go-tangerine-437cf4b3acf1b5a4efde64aacaacdf14289010d1.tar go-tangerine-437cf4b3acf1b5a4efde64aacaacdf14289010d1.tar.gz go-tangerine-437cf4b3acf1b5a4efde64aacaacdf14289010d1.tar.bz2 go-tangerine-437cf4b3acf1b5a4efde64aacaacdf14289010d1.tar.lz go-tangerine-437cf4b3acf1b5a4efde64aacaacdf14289010d1.tar.xz go-tangerine-437cf4b3acf1b5a4efde64aacaacdf14289010d1.tar.zst go-tangerine-437cf4b3acf1b5a4efde64aacaacdf14289010d1.zip |
p2p/discover: add node expirer and related tests
Diffstat (limited to 'p2p/discover/table.go')
-rw-r--r-- | p2p/discover/table.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/p2p/discover/table.go b/p2p/discover/table.go index 11bdff198..060aa7c09 100644 --- a/p2p/discover/table.go +++ b/p2p/discover/table.go @@ -335,6 +335,8 @@ func (tab *Table) ping(id NodeID, addr *net.UDPAddr) error { } // Pong received, update the database and return tab.db.updateLastPong(id, time.Now()) + go tab.db.expirer() + return nil } |