Merge branch '23_retry_peers' of https://github.com/bboreham/weave into bboreham-23_retry_peers

This commit is contained in:
Matthias Radestock committed 2014-09-10 16:34:10 +01:00
commit 8cb79145fa
7 files changed
+178 -97

No files matched your search

+1 -6
View File
@@ -124,12 +124,7 @@ func main() {
router := weave.NewRouter(iface, ourName, []byte(password), connLimit, bufSz*1024*1024, logFrame)
router.Start()
for _, peer := range peers {
targetPeer := peer
go func() {
if err := router.Ourself.CreateConnection(targetPeer, weave.UnknownPeerName); err != nil {
log.Println(err)
}
}()
router.ConnectionMaker.InitiateConnection(peer)
}
go handleHttp(router)
handleSignals(router)