Commit 8ca586a4 authored by duanjinfei's avatar duanjinfei

change withTimeout time

parent c5684d48
...@@ -97,7 +97,7 @@ func SignedTxArr(sendTxAccountArr [][]string, cfg *tool.Config) []*types.Transac ...@@ -97,7 +97,7 @@ func SignedTxArr(sendTxAccountArr [][]string, cfg *tool.Config) []*types.Transac
nonceReq := &ring.NonceRequest{ nonceReq := &ring.NonceRequest{
Address: (*metatypes.Address)(fromAddr.Bytes()), Address: (*metatypes.Address)(fromAddr.Bytes()),
} }
ctx, cancel := context.WithTimeout(context.Background(), time.Second*9) ctx, cancel := context.WithTimeout(context.Background(), time.Second*1)
defer cancel() defer cancel()
response, err := serviceClient.Nonce(ctx, nonceReq) response, err := serviceClient.Nonce(ctx, nonceReq)
if err != nil { 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