Commit 1d498d26 authored by duanjinfei's avatar duanjinfei

change contex timeout time

parent 0e002810
......@@ -77,7 +77,7 @@ func broadcastTx(client ring.RingServiceClient) error {
select {
case broadcastEthTxWithFromRequests := <-broadcastEthTxWithFromRequestsArr:
sendTranStartTime := time.Now()
ctx, cancel := context.WithTimeout(context.Background(), time.Second*2)
ctx, cancel := context.WithTimeout(context.Background(), time.Second*5)
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