diff options
author | Felix Lange <fjl@twurst.com> | 2015-02-09 18:02:32 +0800 |
---|---|---|
committer | Felix Lange <fjl@twurst.com> | 2015-02-09 18:02:32 +0800 |
commit | 9915d3c3be831fa2c95ac277459945d969bd7b06 (patch) | |
tree | 600bbf3c5bc3bf995176fdbecb31d354be60d9ee /p2p/discover/table.go | |
parent | 028775a0863946c1e9ad51fe7b22faa5c59b2605 (diff) | |
download | go-tangerine-9915d3c3be831fa2c95ac277459945d969bd7b06.tar.gz go-tangerine-9915d3c3be831fa2c95ac277459945d969bd7b06.tar.zst go-tangerine-9915d3c3be831fa2c95ac277459945d969bd7b06.zip |
p2p/discover: deflake UDP tests
Diffstat (limited to 'p2p/discover/table.go')
-rw-r--r-- | p2p/discover/table.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/p2p/discover/table.go b/p2p/discover/table.go index 1cdd93a78..1ff2c90d9 100644 --- a/p2p/discover/table.go +++ b/p2p/discover/table.go @@ -87,9 +87,10 @@ func (tab *Table) Lookup(target NodeID) []*Node { reply = make(chan []*Node, alpha) pendingQueries = 0 ) - // don't query further if we hit the target. + // don't query further if we hit the target or ourself. // unlikely to happen often in practice. asked[target] = true + asked[tab.self.ID] = true tab.mutex.Lock() // update last lookup stamp (for refresh logic) |