ソースを参照

node(near): Increase RPC timeout from 5s to 20s (#4588)

Increase the NEAR RPC timeout to provide more time for complex
transactions to complete.
Curt Bryan III 2 日 前
コミット
3ab00a9cc9
1 ファイル変更1 行追加1 行削除
  1. 1 1
      node/pkg/watchers/near/nearapi/nearapi.go

+ 1 - 1
node/pkg/watchers/near/nearapi/nearapi.go

@@ -14,7 +14,7 @@ import (
 )
 
 const (
-	nearRPCTimeout = 5 * time.Second
+	nearRPCTimeout = 20 * time.Second
 	/*
 		NEAR JSON RPC node is starting up with 4 workers
 		(https://github.com/near/nearcore/blob/8dc9a0bab8aa4648fc7af777e9fa7e3e545c95a5/chain/jsonrpc/src/lib.rs#L1372)