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:
Milos Gajdos
2019-08-28 20:11:19 +01:00
parent a4f5772555
commit d09b7dbbef
5 changed files with 607 additions and 47 deletions

View File

@@ -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