Skip to content

Commit

Permalink
rename container -> cotainerReq
Browse files Browse the repository at this point in the history
  • Loading branch information
wattmto committed May 12, 2023
1 parent e38102e commit 945e2f7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/resources/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -121,9 +121,9 @@ func (rs *resourceServer) GetPreferredAllocation(ctx context.Context,
rqt *pluginapi.PreferredAllocationRequest) (*pluginapi.PreferredAllocationResponse, error) {
glog.Infof("GetPreferredAllocation called with %+v", rqt)
resp := new(pluginapi.PreferredAllocationResponse)
for _, container := range rqt.ContainerRequests {
for _, containerReq := range rqt.ContainerRequests {
containerResp := new(pluginapi.ContainerPreferredAllocationResponse)
containerResp.DeviceIDs = rs.allocator.Allocate(container, rs.resourcePool)
containerResp.DeviceIDs = rs.allocator.Allocate(containerReq, rs.resourcePool)
resp.ContainerResponses = append(resp.ContainerResponses, containerResp)
}
glog.Infof("PreferredAllocationResponse send: %+v", resp)
Expand Down

0 comments on commit 945e2f7

Please sign in to comment.