More extensive choice of transferee

This commit is contained in:
Bryan Boreham committed 2015-11-03 12:03:28 +00:00
1 parent 27c5f5f49f
commit ace372cfc6
4 files changed
+45 -28

No files matched your search

+1 -1
View File
@@ -135,7 +135,7 @@ func makeAllocator(name string, cidrStr string, quorum uint) (*Allocator, addres
}
alloc := NewAllocator(peername, router.PeerUID(rand.Int63()),
"nick-"+name, cidr.Range(), quorum, nil)
"nick-"+name, cidr.Range(), quorum, func(router.PeerName) bool { return true })
return alloc, cidr.HostRange()
}