mirror of
https://github.com/kemko/nomad.git
synced 2026-01-06 18:35:44 +03:00
Fix the capacity
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user