robotLJW commented on a change in pull request #1053:
URL: 
https://github.com/apache/servicecomb-service-center/pull/1053#discussion_r652447686



##########
File path: datasource/mongo/mongo.go
##########
@@ -130,7 +130,8 @@ func (ds *DataSource) initClient() error {
        verifyPeer := config.GetBool("registry.mongo.cluster.verifyPeer", false)
        certFile := config.GetString("registry.mongo.cluster.certFile", "")
        keyFile := config.GetString("registry.mongo.cluster.keyFile", "")
-       cfg := storage.NewConfig(uri, storage.SSLEnabled(sslEnable), 
storage.RootCA(rootCA), storage.VerifyPeer(verifyPeer), 
storage.CertFile(certFile), storage.KeyFile(keyFile))
+       poolSize := config.GetInt("registry.mongo.cluster.poolSize", 1000)

Review comment:
       记得小于等于0的时候再打印一个警告日志




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to