More helpful error message when --ip-alloc-range mismatched
This commit is contained in:
1 parent
f4d6e028d4
commit
1f4b943454
3 files changed
+19
No files matched your search
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user