diff --git a/scnserver/config.go b/scnserver/config.go index 1ebe8f6..04d2721 100644 --- a/scnserver/config.go +++ b/scnserver/config.go @@ -73,7 +73,7 @@ var configLocHost = func() Config { Journal: "WAL", Timeout: 5 * time.Second, CheckForeignKeys: false, - SingleConn: false, + SingleConn: true, MaxOpenConns: 5, MaxIdleConns: 5, ConnMaxLifetime: 60 * time.Minute, @@ -86,7 +86,7 @@ var configLocHost = func() Config { Journal: "DELETE", Timeout: 5 * time.Second, CheckForeignKeys: false, - SingleConn: false, + SingleConn: true, MaxOpenConns: 5, MaxIdleConns: 5, ConnMaxLifetime: 60 * time.Minute, @@ -99,7 +99,7 @@ var configLocHost = func() Config { Journal: "DELETE", Timeout: 5 * time.Second, CheckForeignKeys: false, - SingleConn: false, + SingleConn: true, MaxOpenConns: 5, MaxIdleConns: 5, ConnMaxLifetime: 60 * time.Minute, @@ -145,7 +145,7 @@ var configLocDocker = func() Config { Journal: "WAL", Timeout: 5 * time.Second, CheckForeignKeys: false, - SingleConn: false, + SingleConn: true, MaxOpenConns: 5, MaxIdleConns: 5, ConnMaxLifetime: 60 * time.Minute, @@ -158,7 +158,7 @@ var configLocDocker = func() Config { Journal: "DELETE", Timeout: 5 * time.Second, CheckForeignKeys: false, - SingleConn: false, + SingleConn: true, MaxOpenConns: 5, MaxIdleConns: 5, ConnMaxLifetime: 60 * time.Minute, @@ -171,7 +171,7 @@ var configLocDocker = func() Config { Journal: "DELETE", Timeout: 5 * time.Second, CheckForeignKeys: false, - SingleConn: false, + SingleConn: true, MaxOpenConns: 5, MaxIdleConns: 5, ConnMaxLifetime: 60 * time.Minute, @@ -216,7 +216,7 @@ var configDev = func() Config { Journal: "WAL", Timeout: 5 * time.Second, CheckForeignKeys: false, - SingleConn: false, + SingleConn: true, MaxOpenConns: 5, MaxIdleConns: 5, ConnMaxLifetime: 60 * time.Minute, @@ -229,7 +229,7 @@ var configDev = func() Config { Journal: "DELETE", Timeout: 5 * time.Second, CheckForeignKeys: false, - SingleConn: false, + SingleConn: true, MaxOpenConns: 5, MaxIdleConns: 5, ConnMaxLifetime: 60 * time.Minute, @@ -242,7 +242,7 @@ var configDev = func() Config { Journal: "DELETE", Timeout: 5 * time.Second, CheckForeignKeys: false, - SingleConn: false, + SingleConn: true, MaxOpenConns: 5, MaxIdleConns: 5, ConnMaxLifetime: 60 * time.Minute, @@ -288,7 +288,7 @@ var configStag = func() Config { Journal: "WAL", Timeout: 5 * time.Second, CheckForeignKeys: false, - SingleConn: false, + SingleConn: true, MaxOpenConns: 5, MaxIdleConns: 5, ConnMaxLifetime: 60 * time.Minute, @@ -301,7 +301,7 @@ var configStag = func() Config { Journal: "DELETE", Timeout: 5 * time.Second, CheckForeignKeys: false, - SingleConn: false, + SingleConn: true, MaxOpenConns: 5, MaxIdleConns: 5, ConnMaxLifetime: 60 * time.Minute, @@ -314,7 +314,7 @@ var configStag = func() Config { Journal: "DELETE", Timeout: 5 * time.Second, CheckForeignKeys: false, - SingleConn: false, + SingleConn: true, MaxOpenConns: 5, MaxIdleConns: 5, ConnMaxLifetime: 60 * time.Minute, @@ -360,7 +360,7 @@ var configProd = func() Config { Journal: "WAL", Timeout: 5 * time.Second, CheckForeignKeys: false, - SingleConn: false, + SingleConn: true, MaxOpenConns: 5, MaxIdleConns: 5, ConnMaxLifetime: 60 * time.Minute, @@ -373,7 +373,7 @@ var configProd = func() Config { Journal: "DELETE", Timeout: 5 * time.Second, CheckForeignKeys: false, - SingleConn: false, + SingleConn: true, MaxOpenConns: 5, MaxIdleConns: 5, ConnMaxLifetime: 60 * time.Minute, @@ -386,7 +386,7 @@ var configProd = func() Config { Journal: "DELETE", Timeout: 5 * time.Second, CheckForeignKeys: false, - SingleConn: false, + SingleConn: true, MaxOpenConns: 5, MaxIdleConns: 5, ConnMaxLifetime: 60 * time.Minute,