De-scope - Remove unused rover capacity

This commit is contained in:
Marc Di Luzio 2020-06-26 23:39:07 +01:00
parent 71c2c09270
commit d08a15e201
7 changed files with 41 additions and 66 deletions

View file

@ -123,5 +123,4 @@ func TestServer_Rover(t *testing.T) {
assert.NotZero(t, resp.Range, "Rover should return valid range")
assert.NotZero(t, len(resp.Name), "Rover should return valid name")
assert.NotZero(t, resp.Position, "Rover should return valid position")
assert.NotZero(t, resp.Capacity, "Rover should return valid position")
}

View file

@ -72,8 +72,7 @@ func (s *Server) Rover(ctx context.Context, req *rove.RoverRequest) (*rove.Rover
X: int32(pos.X),
Y: int32(pos.Y),
},
Range: int32(attrib.Range),
Capacity: int32(attrib.Capacity),
Range: int32(attrib.Range),
}
}
return response, nil