Skip to content

Commit

Permalink
Update generic_client.go
Browse files Browse the repository at this point in the history
Resolve the issue where the kitexcall -f /path/to/file.json command is not working.
  • Loading branch information
xuanskyer authored Nov 6, 2024
1 parent 0f20436 commit 3ba2e8b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion pkg/client/generic_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,11 @@ func (c *GenericClientBase) Call() error {
return err
}

resp, err := c.Client.GenericCall(ctx, c.Conf.Method, c.Conf.Data, c.CallOptions...)
if err = c.BuildRequest(); err != nil {
return err
}
resp, err := c.Client.GenericCall(ctx, c.Conf.Method, c.Req, c.CallOptions...)

if err != nil {
return err
}
Expand Down

0 comments on commit 3ba2e8b

Please sign in to comment.