mirror of
https://github.com/kemko/nomad.git
synced 2026-01-05 09:55:44 +03:00
client: reset response struct to avoid decode errors
This commit is contained in:
@@ -565,6 +565,7 @@ func (c *Client) watchAllocations(allocUpdates chan []*structs.Allocation) {
|
||||
|
||||
for {
|
||||
// Get the allocations, blocking for updates
|
||||
resp = structs.NodeAllocsResponse{}
|
||||
err := c.RPC("Node.GetAllocs", &req, &resp)
|
||||
if err != nil {
|
||||
c.logger.Printf("[ERR] client: failed to query for node allocations: %v", err)
|
||||
|
||||
Reference in New Issue
Block a user