mirror of
https://github.com/moby/moby.git
synced 2026-01-11 10:41:43 +00:00
api/types/swarm: ResourceRequirements.MemorySwappiness: fix json tag
types/swarm/task.go:151:2: structtag: struct field tag `json:MemorySwappiness,omitzero"` not compatible with reflect.StructTag.Get: bad syntax for struct tag value (govet)
MemorySwappiness *int64 `json:MemorySwappiness,omitzero"`
^
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
@@ -148,7 +148,7 @@ type ResourceRequirements struct {
|
||||
// Tune container memory swappiness (0 to 100) - if not specified, defaults
|
||||
// to the container OS's default - generally 60, or the value predefined in
|
||||
// the image; set to -1 to unset a previously set value
|
||||
MemorySwappiness *int64 `json:MemorySwappiness,omitzero"`
|
||||
MemorySwappiness *int64 `json:"MemorySwappiness,omitzero"`
|
||||
}
|
||||
|
||||
// Placement represents orchestration parameters.
|
||||
|
||||
Reference in New Issue
Block a user