Skip to content

Commit dccd499

Browse files
committed
Revert "trying out CreateContainerMessage"
This reverts commit 26b0fa2.
1 parent 0243214 commit dccd499

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

cluster/calcium/create_container.go

-10
Original file line numberDiff line numberDiff line change
@@ -48,16 +48,6 @@ func (c *calcium) createContainerWithCPUPeriod(specs types.Specs, opts *types.De
4848
plan, err := utils.AllocContainerPlan(nodesInfo, cpuQuota, opts.Memory, opts.Count) // 还是以 Bytes 作单位, 不转换了
4949

5050
if err != nil {
51-
ch <- &types.CreateContainerMessage{
52-
Podname: "",
53-
Nodename: "",
54-
ContainerID: "",
55-
ContainerName: "",
56-
Error: err.Error(),
57-
Success: false,
58-
CPU: nil,
59-
Memory: 0,
60-
}
6151
return ch, err
6252
}
6353

0 commit comments

Comments
 (0)