mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
api: Remove omitempty tag on Parallelism
It doesn't make sense to use omitempty here. 0 is a meaningful value and
it's different from the default. If someone sets Parallelism to 0, we
want to show that Parallelism is 0, not hide the field.
Signed-off-by: Aaron Lehmann <aaron.lehmann@docker.com>
(cherry picked from commit d8b8b12994
)
Signed-off-by: Victor Vieux <victorvieux@gmail.com>
This commit is contained in:
parent
7ef4feaf38
commit
48c2da3cd5
1 changed files with 1 additions and 1 deletions
|
@ -74,7 +74,7 @@ const (
|
||||||
type UpdateConfig struct {
|
type UpdateConfig struct {
|
||||||
// Maximum number of tasks to be updated in one iteration.
|
// Maximum number of tasks to be updated in one iteration.
|
||||||
// 0 means unlimited parallelism.
|
// 0 means unlimited parallelism.
|
||||||
Parallelism uint64 `json:",omitempty"`
|
Parallelism uint64
|
||||||
|
|
||||||
// Amount of time between updates.
|
// Amount of time between updates.
|
||||||
Delay time.Duration `json:",omitempty"`
|
Delay time.Duration `json:",omitempty"`
|
||||||
|
|
Loading…
Add table
Reference in a new issue