undo async update

This commit is contained in:
Alex Dadgar 2016-02-19 22:34:52 -08:00
parent c08e3dbee8
commit 2ec5d7de76
1 changed files with 10 additions and 13 deletions

View File

@ -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
}