From 8c88f81837e8e61c2f2848dc56b5dc399a5b717f Mon Sep 17 00:00:00 2001 From: Aiee <18348405+Aiee@users.noreply.github.com> Date: Wed, 8 Feb 2023 17:21:00 +0800 Subject: [PATCH] Add comments --- configs.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/configs.go b/configs.go index 7f8e7fa4..e6e16ba0 100644 --- a/configs.go +++ b/configs.go @@ -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 @@ -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,