From 090b8fb0e5488a5bc067a384a05a9d3baf20d996 Mon Sep 17 00:00:00 2001 From: Amogh Bharadwaj Date: Thu, 25 Jan 2024 20:17:11 +0530 Subject: [PATCH] Fix idletimeout default, change clickhouse component name (#1153) Minor UI changes --- ui/app/mirrors/create/helpers/cdc.ts | 2 +- ui/components/PeerForms/ClickhouseConfig.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ui/app/mirrors/create/helpers/cdc.ts b/ui/app/mirrors/create/helpers/cdc.ts index f4bdf285f9..663e7aee22 100644 --- a/ui/app/mirrors/create/helpers/cdc.ts +++ b/ui/app/mirrors/create/helpers/cdc.ts @@ -29,7 +29,7 @@ export const cdcSettings: MirrorSetting[] = [ stateHandler: (value, setter) => setter((curr: CDCConfig) => ({ ...curr, - idleTimeoutSeconds: (value as number) || 100000, + idleTimeoutSeconds: (value as number) || 60, })), tips: 'Time after which a Sync flow ends, if it happens before pull batch size is reached. Defaults to 60 seconds.', helpfulLink: 'https://docs.peerdb.io/metrics/important_cdc_configs', diff --git a/ui/components/PeerForms/ClickhouseConfig.tsx b/ui/components/PeerForms/ClickhouseConfig.tsx index 1d76286db0..3e589c5045 100644 --- a/ui/components/PeerForms/ClickhouseConfig.tsx +++ b/ui/components/PeerForms/ClickhouseConfig.tsx @@ -18,7 +18,7 @@ interface ConfigProps { setter: PeerSetter; } -export default function PostgresForm({ settings, setter }: ConfigProps) { +export default function ClickhouseForm({ settings, setter }: ConfigProps) { const [showSSH, setShowSSH] = useState(false); const [sshConfig, setSSHConfig] = useState(blankSSHConfig);