Commit 41f76f4a authored by duanjinfei's avatar duanjinfei

change timeout time

parent f141c96e
......@@ -78,7 +78,7 @@ func broadcastTx(cfg *tool.Config, client ring.RingServiceClient) error {
select {
case broadcastEthTxWithFromRequests := <-broadcastEthTxWithFromRequestsArr:
sendTranStartTime := time.Now()
ctx, cancel := context.WithTimeout(context.Background(), time.Second*5)
ctx, cancel := context.WithTimeout(context.Background(), time.Second*30)
defer cancel()
_, err := client.BroadcastTxs(ctx, broadcastEthTxWithFromRequests)
if err != nil {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment