Skip to content

Commit

Permalink
Add comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Aiee committed Feb 8, 2023
1 parent 2d739b6 commit 8c88f81
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions configs.go
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ type SessionPoolConf struct {
hostIndex int // index of the host in ServiceAddrs that the next new session will connect to
spaceName string // The space name that all sessions in the pool are bound to
sslConfig *tls.Config // Optional SSL config for the connection
retryGetSessionTimes int // The max times to retry get session from pool executing a single query
retryGetSessionTimes int // The max times to retry get new session when executing a query

// Basic pool configs
// Socket timeout and Socket connection timeout, unit: seconds
Expand Down Expand Up @@ -143,7 +143,7 @@ func NewSessionPoolConf(
password: password,
serviceAddrs: serviceAddrs,
spaceName: spaceName,
retryGetSessionTimes: 0,
retryGetSessionTimes: 1,
timeOut: 0 * time.Millisecond,
idleTime: 0 * time.Millisecond,
maxSize: 30,
Expand Down

0 comments on commit 8c88f81

Please sign in to comment.