From 5d69c432513bef051650a1c16764db7fe69090d5 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 479af4e9..01a188b5 100644 --- a/configs.go +++ b/configs.go @@ -118,7 +118,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 @@ -148,7 +148,7 @@ func NewSessionPoolConf( password: password, serviceAddrs: serviceAddrs, spaceName: spaceName, - retryGetSessionTimes: 0, + retryGetSessionTimes: 1, timeOut: 0 * time.Millisecond, idleTime: 0 * time.Millisecond, maxSize: 30,