diff options
author | zelig <viktor.tron@gmail.com> | 2015-03-15 14:38:41 +0800 |
---|---|---|
committer | zelig <viktor.tron@gmail.com> | 2015-03-15 14:38:41 +0800 |
commit | e1508327342135fc43676f3778db70814ef82569 (patch) | |
tree | 1bee7fe4701ba68795a6fa74bc2bc45a4d0a8040 /p2p/discover | |
parent | 7279a485c24de3f0aaf839e1884151322a97dbf7 (diff) | |
download | go-tangerine-e1508327342135fc43676f3778db70814ef82569.tar.gz go-tangerine-e1508327342135fc43676f3778db70814ef82569.tar.zst go-tangerine-e1508327342135fc43676f3778db70814ef82569.zip |
p2p: server>discover table Self=Node exported
Diffstat (limited to 'p2p/discover')
-rw-r--r-- | p2p/discover/table.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/p2p/discover/table.go b/p2p/discover/table.go index e3bec9328..33b705a12 100644 --- a/p2p/discover/table.go +++ b/p2p/discover/table.go @@ -51,9 +51,9 @@ func newTable(t transport, ourID NodeID, ourAddr *net.UDPAddr) *Table { return tab } -// Self returns the local node ID. -func (tab *Table) Self() NodeID { - return tab.self.ID +// Self returns the local node. +func (tab *Table) Self() *Node { + return tab.self } // Close terminates the network listener. |