From 8df3a470383ff5e86ed889719c01486088e437bb Mon Sep 17 00:00:00 2001 From: r-vasquez Date: Tue, 30 Jul 2024 08:45:36 -0700 Subject: [PATCH] sr: fix body of cl.SetMode The client was missing the 'mode' key in the sr's PUT /mode --- pkg/sr/api.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pkg/sr/api.go b/pkg/sr/api.go index fa6fd9f1..3f4356c4 100644 --- a/pkg/sr/api.go +++ b/pkg/sr/api.go @@ -773,7 +773,10 @@ func (cl *Client) SetMode(ctx context.Context, mode Mode, subjects ...string) [] go func() { defer wg.Done() var m modeResponse - err := cl.put(ctx, pathMode(subject), mode, &m) + body := struct { + Mode Mode `json:"mode"` + }{mode} + err := cl.put(ctx, pathMode(subject), body, &m) results[slot] = ModeResult{ Subject: subject, Mode: m.Mode,