Skip to content

Commit

Permalink
api: make staticchecker happy
Browse files Browse the repository at this point in the history
```
Running: golangci-lint run --new-from-patch=2386.patch
api/model.go:2061:23: SA1019: im.Status.Instances is deprecated: Replaced by InstanceEngines and InstanceReplicas +optional +nullable (staticcheck)
		Instances:          im.Status.Instances,
		                    ^
```

Longhorn 7095

Signed-off-by: Derek Su <derek.su@suse.com>
  • Loading branch information
derekbit authored and David Ko committed Dec 28, 2023
1 parent 433324d commit b7bba51
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion api/model.go
Expand Up @@ -501,7 +501,6 @@ type InstanceManager struct {
InstanceEngines map[string]longhorn.InstanceProcess `json:"instanceEngines"`
InstanceReplicas map[string]longhorn.InstanceProcess `json:"instanceReplicas"`

// Deprecated
Instances map[string]longhorn.InstanceProcess `json:"instances"`
}

Expand Down

0 comments on commit b7bba51

Please sign in to comment.