Fix the capacity

This commit is contained in:
Alex Dadgar
2015-11-16 12:10:29 -08:00
parent fa68fb62d3
commit b692bcd0b4
3 changed files with 19 additions and 12 deletions

View File

@@ -183,16 +183,6 @@ func (r *AllocRunner) Alloc() *structs.Allocation {
return r.alloc
}
// setAlloc is used to update the allocation of the runner
// we preserve the existing client status and description
func (r *AllocRunner) setAlloc(alloc *structs.Allocation) {
if r.alloc != nil {
alloc.ClientStatus = r.alloc.ClientStatus
alloc.ClientDescription = r.alloc.ClientDescription
}
r.alloc = alloc
}
// dirtySyncState is used to watch for state being marked dirty to sync
func (r *AllocRunner) dirtySyncState() {
for {