Skip to content

Commit

Permalink
fix getty config (#424)
Browse files Browse the repository at this point in the history
* remove unused config
  • Loading branch information
luky116 committed Jan 2, 2023
1 parent 99d9a9d commit 38903f6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pkg/remoting/getty/rpc_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,6 @@ func (c *RpcClient) setSessionConfig(session getty.Session) {
session.SetEventListener(GetGettyClientHandlerInstance())
session.SetReadTimeout(c.gettyConf.SessionConfig.TCPReadTimeout)
session.SetWriteTimeout(c.gettyConf.SessionConfig.TCPWriteTimeout)
session.SetCronPeriod((int)(c.gettyConf.SessionConfig.CronPeriod.Milliseconds()))
session.SetCronPeriod((int)(c.gettyConf.SessionConfig.CronPeriod.Nanoseconds() / 1e6))
session.SetWaitTime(c.gettyConf.SessionConfig.WaitTimeout)
}
4 changes: 2 additions & 2 deletions sample/conf/seatago.yml
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ seata:
# getty configuration
getty:
reconnect-interval: 0
connection-num: 16
connection-num: 1
heartbeat-period: 15s
session:
compress-encoding: false
Expand All @@ -152,7 +152,7 @@ seata:
keep-alive-period: 120s
tcp-r-buf-size: 262144
tcp-w-buf-size: 65536
tcp-read-timeout: 1s
tcp-read-timeout: 5s
tcp-write-timeout: 5s
wait-timeout: 1s
max-msg-len: 16498688
Expand Down

0 comments on commit 38903f6

Please sign in to comment.