Skip to content

Commit

Permalink
fix: the parameter of membername is wrong for leavemember (#8393)
Browse files Browse the repository at this point in the history
  • Loading branch information
xuriwuyun authored Nov 5, 2024
1 parent c23ab71 commit a4b61c5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/lorry/client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -211,9 +211,10 @@ func (cli *lorryClient) JoinMember(ctx context.Context) error {

// LeaveMember sends a Leave member operation request to Lorry, located on the target pod that is about to leave.
func (cli *lorryClient) LeaveMember(ctx context.Context, memberName string) error {
req := map[string]any{
parameters := map[string]any{
"memberName": memberName,
}
req := map[string]any{"parameters": parameters}
_, err := cli.Request(ctx, string(LeaveMemberOperation), http.MethodPost, req)
return err
}
Expand Down

0 comments on commit a4b61c5

Please sign in to comment.