Skip to content

Commit

Permalink
sr: fix body of cl.SetMode
Browse files Browse the repository at this point in the history
The client was missing the 'mode' key in the
sr's PUT /mode
  • Loading branch information
r-vasquez committed Jul 30, 2024
1 parent d5978bd commit 8df3a47
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pkg/sr/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 8df3a47

Please sign in to comment.