Remove superfluous line and fix comment typo
This commit is contained in:
1 parent
ef1b8d6237
commit
952e9de265
1 file changed
+1
-2
+1
-2
@@ -714,7 +714,7 @@ func (alloc *Allocator) update(sender mesh.PeerName, msg []byte) error {
|
|||||||
|
|
||||||
func (alloc *Allocator) donateSpace(r address.Range, to mesh.PeerName) {
|
func (alloc *Allocator) donateSpace(r address.Range, to mesh.PeerName) {
|
||||||
// No matter what we do, we'll send a unicast gossip
|
// No matter what we do, we'll send a unicast gossip
|
||||||
// of our ring back to tha chap who asked for space.
|
// of our ring back to the chap who asked for space.
|
||||||
// This serves to both tell him of any space we might
|
// This serves to both tell him of any space we might
|
||||||
// have given him, or tell him where he might find some
|
// have given him, or tell him where he might find some
|
||||||
// more.
|
// more.
|
||||||
@@ -733,7 +733,6 @@ func (alloc *Allocator) donateSpace(r address.Range, to mesh.PeerName) {
|
|||||||
}
|
}
|
||||||
alloc.debugln("Giving range", chunk, "to", to)
|
alloc.debugln("Giving range", chunk, "to", to)
|
||||||
alloc.ring.GrantRangeToHost(chunk.Start, chunk.End, to)
|
alloc.ring.GrantRangeToHost(chunk.Start, chunk.End, to)
|
||||||
alloc.sendRingUpdate(to)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func (alloc *Allocator) assertInvariants() {
|
func (alloc *Allocator) assertInvariants() {
|
||||||
|
|||||||
Reference in new issue
Block a user