Refactor to collect all code that touches alloc.owned
This commit is contained in:
1 parent
faa7bad8d8
commit
71da517e88
2 files changed
+42
-21
No files matched your search
+1
-1
@@ -25,7 +25,7 @@ func (g *allocate) Try(alloc *Allocator) bool {
|
||||
return true
|
||||
}
|
||||
|
||||
if addr, found := alloc.lookupOwned(g.ident, g.r); found {
|
||||
if addr, found := alloc.ownedInRange(g.ident, g.r); found {
|
||||
// If we had heard that this container died, resurrect it
|
||||
delete(alloc.dead, g.ident) // delete is no-op if key not in map
|
||||
g.resultChan <- allocateResult{addr, nil}
|
||||
|
||||
Reference in new issue
Block a user