Skip to content

Commit

Permalink
Change default connect & rpc timeout to 10s,30s
Browse files Browse the repository at this point in the history
  • Loading branch information
w41ter committed May 29, 2024
1 parent 945216b commit f1d5504
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/rpc/fe.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ var ErrFeNotMasterCompatible = xerror.NewWithoutStack(xerror.FE, "not master com
func init() {
flag.StringVar(&localRepoName, "local_repo_name", "", "local_repo_name")
flag.DurationVar(&commitTxnTimeout, "commit_txn_timeout", 33*time.Second, "commmit_txn_timeout")
flag.DurationVar(&connectTimeout, "connect_timeout", 1*time.Second, "connect timeout")
flag.DurationVar(&rpcTimeout, "rpc_timeout", 3*time.Second, "rpc timeout")
flag.DurationVar(&connectTimeout, "connect_timeout", 10*time.Second, "connect timeout")
flag.DurationVar(&rpcTimeout, "rpc_timeout", 30*time.Second, "rpc timeout")
}

// canUseNextAddr means can try next addr, err is a connection error, not a method not found or other error
Expand Down

0 comments on commit f1d5504

Please sign in to comment.