瀏覽代碼

Merge pull request #28521 from aaronlehmann/omitempty

api: Remove omitempty tag on Parallelism
Vincent Demeester 8 年之前
父節點
當前提交
465c0484dc
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      api/types/swarm/service.go

+ 1 - 1
api/types/swarm/service.go

@@ -74,7 +74,7 @@ const (
 type UpdateConfig struct {
 	// Maximum number of tasks to be updated in one iteration.
 	// 0 means unlimited parallelism.
-	Parallelism uint64 `json:",omitempty"`
+	Parallelism uint64
 
 	// Amount of time between updates.
 	Delay time.Duration `json:",omitempty"`