Skip to content

Commit d966336

Browse files
committed
Optimized code for SendRequest.
1 parent 40b0c71 commit d966336

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

client/client.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ func (c *Client) SendPacket(p *roc.Packet) (uint32, error) {
8484
return p.GetId(), nil
8585
}
8686

87-
func (c *Client) SendRequest(path string, r json.Marshaler) (uint32, error) {
87+
func (c *Client) SendRequest(path string, r any) (uint32, error) {
8888
uuid, err := formatter.GenerateId()
8989
if err != nil {
9090
return 0, err

0 commit comments

Comments
 (0)