Merge branch '1.0'
Conflicts: ipam/allocator_test.go ipam/claim.go
This commit is contained in:
commit
d5a4326b9e
3 files changed
+27
-21
No files matched your search
+2
-3
@@ -202,10 +202,9 @@ func (alloc *Allocator) Lookup(ident string, r address.Range) (address.Address,
|
||||
}
|
||||
|
||||
// Claim an address that we think we should own (Sync)
|
||||
func (alloc *Allocator) Claim(ident string, addr address.Address, cancelChan <-chan bool) error {
|
||||
func (alloc *Allocator) Claim(ident string, addr address.Address) error {
|
||||
resultChan := make(chan error)
|
||||
op := &claim{resultChan: resultChan, ident: ident, addr: addr,
|
||||
hasBeenCancelled: hasBeenCancelled(cancelChan)}
|
||||
op := &claim{resultChan: resultChan, ident: ident, addr: addr}
|
||||
alloc.doOperation(op, &alloc.pendingClaims)
|
||||
return <-resultChan
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user