undo async update
This commit is contained in:
parent
c08e3dbee8
commit
2ec5d7de76
|
@ -817,8 +817,6 @@ func (c *Client) updateNodeStatus() error {
|
|||
|
||||
// updateAllocStatus is used to update the status of an allocation
|
||||
func (c *Client) updateAllocStatus(alloc *structs.Allocation) error {
|
||||
// XXX: For testing ONLY. Do not use this commit!!!
|
||||
go func() {
|
||||
args := structs.AllocUpdateRequest{
|
||||
Alloc: []*structs.Allocation{alloc},
|
||||
WriteRequest: structs.WriteRequest{Region: c.config.Region},
|
||||
|
@ -827,9 +825,8 @@ func (c *Client) updateAllocStatus(alloc *structs.Allocation) error {
|
|||
err := c.RPC("Node.UpdateAlloc", &args, &resp)
|
||||
if err != nil {
|
||||
c.logger.Printf("[ERR] client: failed to update allocation: %v", err)
|
||||
//return err
|
||||
return err
|
||||
}
|
||||
}()
|
||||
|
||||
return nil
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue