瀏覽代碼

fix: temp/testing fix for hanging issue, #8033

Torkel Ödegaard 8 年之前
父節點
當前提交
f5f0d94ad4
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      pkg/services/sqlstore/sqlstore.go

+ 2 - 2
pkg/services/sqlstore/sqlstore.go

@@ -199,8 +199,8 @@ func LoadConfig() {
 	if DbCfg.Type == "sqlite3" {
 	if DbCfg.Type == "sqlite3" {
 		UseSQLite3 = true
 		UseSQLite3 = true
 		// only allow one connection as sqlite3 has multi threading issues that casue table locks
 		// only allow one connection as sqlite3 has multi threading issues that casue table locks
-		DbCfg.MaxIdleConn = 1
-		DbCfg.MaxOpenConn = 1
+		// DbCfg.MaxIdleConn = 1
+		// DbCfg.MaxOpenConn = 1
 	}
 	}
 	DbCfg.SslMode = sec.Key("ssl_mode").String()
 	DbCfg.SslMode = sec.Key("ssl_mode").String()
 	DbCfg.CaCertPath = sec.Key("ca_cert_path").String()
 	DbCfg.CaCertPath = sec.Key("ca_cert_path").String()