Browse Source

Green->YKonsole and shorter conn lifetimes

main 2.0.5
Stian Fredrik Aune 2 years ago
parent
commit
6d36a04392
  1. 2
      webui-react/src/primitives/page/Page.tsx
  2. 2
      ykonsole-mysql/src/main/kotlin/net/aiterp/git/ykonsole2/infrastructure/DataSource.kt

2
webui-react/src/primitives/page/Page.tsx

@ -11,7 +11,7 @@ interface PageProps extends WithChildren {
function Page({title, background, children}: PageProps) {
useLayoutEffect(() => {
document.title = title ? `${title} - Green` : "Green";
document.title = title ? `${title} - YKonsole` : "YKonsole";
}, [title]);
let cls = "Page";

2
ykonsole-mysql/src/main/kotlin/net/aiterp/git/ykonsole2/infrastructure/DataSource.kt

@ -26,7 +26,7 @@ fun makeDataSource(
cfg.password = password
cfg.poolName = "ykonsole2-pool-${randomId()}"
cfg.maximumPoolSize = poolSize
cfg.maxLifetime = 5.minutes.inWholeMilliseconds
cfg.maxLifetime = 1.minutes.inWholeMilliseconds
if (driverClassName != null) {
cfg.driverClassName = driverClassName

Loading…
Cancel
Save