Skip to content

Commit

Permalink
minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Amogh-Bharadwaj committed Nov 11, 2023
1 parent 2ee316e commit 7001c0d
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 5 deletions.
2 changes: 0 additions & 2 deletions ui/app/mirrors/create/cdc.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ interface MirrorConfigProps {
setRows: Dispatch<SetStateAction<TableMapRow[]>>;
schema: string;
setSchema: Dispatch<SetStateAction<string>>;
setValidSource: Dispatch<SetStateAction<boolean>>;
}

export const defaultSyncMode = (dtype: DBType | undefined) => {
Expand All @@ -44,7 +43,6 @@ export default function CDCConfigForm({
setRows,
schema,
setSchema,
setValidSource,
}: MirrorConfigProps) {
const setToDefault = (setting: MirrorSetting) => {
const destinationPeerType = mirrorConfig.destination?.type;
Expand Down
2 changes: 1 addition & 1 deletion ui/app/mirrors/create/helpers/cdc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export const cdcSettings: MirrorSetting[] = [
...curr,
snapshotMaxParallelWorkers: parseInt(value as string, 10) || 1,
})),
tips: 'PeerDB spins up parallel threads for each partition. This setting controls the number of partitions to sync in parallel. The default value is 8.',
tips: 'PeerDB spins up parallel threads for each partition. This setting controls the number of partitions to sync in parallel. The default value is 1.',
default: '1',
type: 'number',
},
Expand Down
2 changes: 0 additions & 2 deletions ui/app/mirrors/create/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -408,7 +408,6 @@ export default function CreateMirrors() {
setRows={setRows}
setSchema={setSourceSchema}
schema={sourceSchema}
setValidSource={setValidSource}
/>
) : (
<QRepConfigForm
Expand All @@ -426,7 +425,6 @@ export default function CreateMirrors() {
Cancel
</Button>
<Button
disabled={mirrorType === 'CDC' && !validSource}
variant='normalSolid'
onClick={() =>
mirrorType === 'CDC'
Expand Down

0 comments on commit 7001c0d

Please sign in to comment.