Skip to content

Commit

Permalink
fix: remove unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
yihau committed Sep 2, 2021
1 parent dda041c commit b5072bf
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions client/rpc/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,6 @@ func (c *RpcClient) Call(ctx context.Context, params ...interface{}) ([]byte, er
return nil, fmt.Errorf("failed to prepare payload, err: %v", err)
}

fmt.Println(string(j))

// prepare request
req, err := http.NewRequestWithContext(ctx, "POST", c.endpoint, bytes.NewBuffer(j))
if err != nil {
Expand All @@ -54,8 +52,6 @@ func (c *RpcClient) Call(ctx context.Context, params ...interface{}) ([]byte, er
return nil, fmt.Errorf("failed to read body, err: %v", err)
}

fmt.Println(string(body))

// check response code
if res.StatusCode < 200 || res.StatusCode > 300 {
return body, fmt.Errorf("get status code: %v", res.StatusCode)
Expand Down

0 comments on commit b5072bf

Please sign in to comment.