Skip to content

Commit

Permalink
Merge pull request #797 from r-vasquez/fix-mode-body
Browse files Browse the repository at this point in the history
sr: fix body of cl.SetMode
  • Loading branch information
twmb authored Jul 30, 2024
2 parents d5978bd + 8df3a47 commit 6b61d17
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 6b61d17

Please sign in to comment.