@@ -129,7 +129,7 @@ public SessionPool(List<string> nodeUrls, string username, string password, int
129129 {
130130 }
131131 public SessionPool ( List < string > nodeUrls , string username , string password , int fetchSize , string zoneId , int poolSize , bool enableRpcCompression , int timeout )
132- : this ( nodeUrls , username , password , fetchSize , zoneId , poolSize , enableRpcCompression , timeout , false , null , IoTDBConstant . TREE_SQL_DIALECT , "" )
132+ : this ( nodeUrls , username , password , fetchSize , zoneId , poolSize , enableRpcCompression , timeout , false , null , IoTDBConstant . TREE_SQL_DIALECT , "" )
133133 {
134134
135135 }
@@ -246,7 +246,7 @@ public async Task Open(CancellationToken cancellationToken = default)
246246 {
247247 try
248248 {
249- _clients . Add ( await CreateAndOpen ( _host , _port , _enableRpcCompression , _timeout , _useSsl , _certificatePath , _sqlDialect , _database , cancellationToken ) ) ;
249+ _clients . Add ( await CreateAndOpen ( _host , _port , _enableRpcCompression , _timeout , _useSsl , _certificatePath , _sqlDialect , _database , cancellationToken ) ) ;
250250 }
251251 catch ( Exception e )
252252 {
@@ -269,7 +269,7 @@ public async Task Open(CancellationToken cancellationToken = default)
269269 var endPoint = _endPoints [ endPointIndex ] ;
270270 try
271271 {
272- var client = await CreateAndOpen ( endPoint . Ip , endPoint . Port , _enableRpcCompression , _timeout , _useSsl , _certificatePath , _sqlDialect , _database , cancellationToken ) ;
272+ var client = await CreateAndOpen ( endPoint . Ip , endPoint . Port , _enableRpcCompression , _timeout , _useSsl , _certificatePath , _sqlDialect , _database , cancellationToken ) ;
273273 _clients . Add ( client ) ;
274274 isConnected = true ;
275275 startIndex = ( endPointIndex + 1 ) % _endPoints . Count ;
@@ -308,7 +308,7 @@ public async Task<Client> Reconnect(Client originalClient = null, CancellationTo
308308 {
309309 try
310310 {
311- var client = await CreateAndOpen ( _host , _port , _enableRpcCompression , _timeout , _useSsl , _certificatePath , _sqlDialect , _database , cancellationToken ) ;
311+ var client = await CreateAndOpen ( _host , _port , _enableRpcCompression , _timeout , _useSsl , _certificatePath , _sqlDialect , _database , cancellationToken ) ;
312312 return client ;
313313 }
314314 catch ( Exception e )
@@ -335,7 +335,7 @@ public async Task<Client> Reconnect(Client originalClient = null, CancellationTo
335335 int j = ( startIndex + i ) % _endPoints . Count ;
336336 try
337337 {
338- var client = await CreateAndOpen ( _endPoints [ j ] . Ip , _endPoints [ j ] . Port , _enableRpcCompression , _timeout , _useSsl , _certificatePath , _sqlDialect , _database , cancellationToken ) ;
338+ var client = await CreateAndOpen ( _endPoints [ j ] . Ip , _endPoints [ j ] . Port , _enableRpcCompression , _timeout , _useSsl , _certificatePath , _sqlDialect , _database , cancellationToken ) ;
339339 return client ;
340340 }
341341 catch ( Exception e )
0 commit comments