More helpful error message when --ip-alloc-range mismatched

This commit is contained in:
Bryan Boreham committed 2015-07-17 11:42:30 +01:00
1 parent f4d6e028d4
commit 1f4b943454
3 files changed
+19

No files matched your search

+4
View File
@@ -92,6 +92,10 @@ func New(start, end address.Address, peer router.PeerName) *Ring {
return ring
}
func (r *Ring) Range() address.Range {
return address.Range{Start: r.Start, End: r.End}
}
// Returns the distance between two tokens on this ring, dealing
// with ranges which cross the origin
func (r *Ring) distance(start, end address.Address) address.Offset {