diff --git a/.changeset/cyan-otters-sleep.md b/.changeset/cyan-otters-sleep.md new file mode 100644 index 000000000..67234ee86 --- /dev/null +++ b/.changeset/cyan-otters-sleep.md @@ -0,0 +1,5 @@ +--- +'@powersync/service-core': patch +--- + +Use slot_name_prefix from the replication connection again. diff --git a/packages/service-core/src/util/config/compound-config-collector.ts b/packages/service-core/src/util/config/compound-config-collector.ts index 76629239e..fc9b53d76 100644 --- a/packages/service-core/src/util/config/compound-config-collector.ts +++ b/packages/service-core/src/util/config/compound-config-collector.ts @@ -170,8 +170,7 @@ export class CompoundConfigCollector { baseConfig.api?.parameters?.max_data_fetch_concurrency ?? DEFAULT_MAX_DATA_FETCH_CONCURRENCY }, // TODO maybe move this out of the connection or something - // slot_name_prefix: connections[0]?.slot_name_prefix ?? 'powersync_' - slot_name_prefix: 'powersync_', + slot_name_prefix: baseConfig.replication?.connections?.[0]?.slot_name_prefix ?? 'powersync_', parameters: baseConfig.parameters ?? {} };