Broadcast neighbourhood; fix critical bugs in channel connections
This commit introduces neighbourhood announcements which allows to maintaing neighbour map if each next-hop node. It also fixes a critical bug when accepting connections for a particular tunnel channel.
This commit is contained in:
@@ -13,8 +13,10 @@ var (
|
||||
DefaultName = "go.micro"
|
||||
// DefaultAddress is default network address
|
||||
DefaultAddress = ":0"
|
||||
// ResolveTime ddefines the time to periodically resolve network nodes
|
||||
// ResolveTime defines time interval to periodically resolve network nodes
|
||||
ResolveTime = 1 * time.Minute
|
||||
// AnnounceTime defines time interval to periodically announce node neighbours
|
||||
AnnounceTime = 30 * time.Second
|
||||
)
|
||||
|
||||
// Network is micro network
|
||||
|
Reference in New Issue
Block a user