Skip to content

Commit cf40aa9

Browse files
committed
add json tags to struct to fix golangci-lint failure from musttag linter
1 parent 149f907 commit cf40aa9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

internal/patroni/api.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -200,9 +200,9 @@ func (exec Executor) GetTimeline(ctx context.Context) (int64, error) {
200200
}
201201

202202
var members []struct {
203-
Role string
204-
State string
205-
Timeline int64 `json:"TL"`
203+
Role string `json:"Role"`
204+
State string `json:"State"`
205+
Timeline int64 `json:"TL"`
206206
}
207207
err = json.Unmarshal(stdout.Bytes(), &members)
208208
if err != nil {

0 commit comments

Comments
 (0)