Skip to content

Commit 816c784

Browse files
fix(xrpl): set timeout from client config in rpc client
1 parent bf31eb6 commit 816c784

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

xrpl/rpc/client.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ func (c *Client) Request(reqParams XRPLRequest) (XRPLResponse, error) {
5252
}
5353

5454
// add timeout context to prevent hanging
55-
ctx, cancel := context.WithTimeout(context.Background(), time.Second*5)
55+
ctx, cancel := context.WithTimeout(context.Background(), c.cfg.timeout)
5656
defer cancel()
5757
req = req.WithContext(ctx)
5858

0 commit comments

Comments
 (0)