From f4d6e028d47215150826b794caebb8aee5bed59e Mon Sep 17 00:00:00 2001 From: Bryan Boreham Date: Fri, 17 Jul 2015 11:33:29 +0100 Subject: [PATCH] Simplify --- ipam/allocator.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ipam/allocator.go b/ipam/allocator.go index 8137cb33..4e47cf11 100644 --- a/ipam/allocator.go +++ b/ipam/allocator.go @@ -64,7 +64,7 @@ func NewAllocator(ourName router.PeerName, ourUID router.PeerUID, ourNickname st return &Allocator{ ourName: ourName, universe: universe, - ring: ring.New(universe.Start, address.Add(universe.Start, universe.Size()), ourName), + ring: ring.New(universe.Start, universe.End, ourName), owned: make(map[string][]address.Address), paxos: paxos.NewNode(ourName, ourUID, quorum), nicknames: map[router.PeerName]string{ourName: ourNickname},