refactor: rename 'Topology' to 'Routes'
Since that is what it is. By contrast, when the docs talk about topology they actually refer to the peer connectivity graph.
This commit is contained in:
1 parent
fc1ec6ada2
commit
e8f836ad85
7 files changed
+56
-55
No files matched your search
+1
-9
@@ -17,7 +17,7 @@ type Router struct {
|
||||
Macs *MacCache
|
||||
Peers *PeerCache
|
||||
UDPListener *net.UDPConn
|
||||
Topology *Topology
|
||||
Routes *Routes
|
||||
ConnectionMaker *ConnectionMaker
|
||||
Password *[]byte
|
||||
ConnLimit int
|
||||
@@ -150,14 +150,6 @@ type Interaction struct {
|
||||
resultChan chan<- interface{}
|
||||
}
|
||||
|
||||
type Topology struct {
|
||||
sync.RWMutex
|
||||
queryChan chan<- *Interaction
|
||||
unicast map[PeerName]PeerName
|
||||
broadcast map[PeerName][]PeerName
|
||||
router *Router
|
||||
}
|
||||
|
||||
type ConnectionMakerInteraction struct {
|
||||
Interaction
|
||||
address string
|
||||
|
||||
Reference in new issue
Block a user