mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-10-29 17:58:36 +08:00
vet: composite literal uses unkeyed fields
This commit is contained in:
@@ -328,7 +328,10 @@ func NewPendingUsageBySchedInfo(hostId string, req *api.SchedInfo) *SPendingUsag
|
||||
// but in the future, info may increase
|
||||
group := &computemodels.SGroup{}
|
||||
group.Id = groupId
|
||||
u.InstanceGroupUsage[groupId] = &api.CandidateGroup{group, 1}
|
||||
u.InstanceGroupUsage[groupId] = &api.CandidateGroup{
|
||||
SGroup: group,
|
||||
ReferCount: 1,
|
||||
}
|
||||
}
|
||||
|
||||
return u
|
||||
|
||||
Reference in New Issue
Block a user