From 793d61a13e8075a9efa63b416cfd2359ac632b50 Mon Sep 17 00:00:00 2001 From: Philipinho <16838612+Philipinho@users.noreply.github.com> Date: Sun, 25 Jan 2026 19:35:32 +0000 Subject: [PATCH] rename default prefix --- apps/server/src/collaboration/collaboration.gateway.ts | 1 + .../extensions/redis-sync/redis-sync.extension.ts | 8 +------- 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/apps/server/src/collaboration/collaboration.gateway.ts b/apps/server/src/collaboration/collaboration.gateway.ts index 2fde2877a..d24196364 100644 --- a/apps/server/src/collaboration/collaboration.gateway.ts +++ b/apps/server/src/collaboration/collaboration.gateway.ts @@ -46,6 +46,7 @@ export class CollaborationGateway { retryStrategy: createRetryStrategy(), }), serverId: `collab-${process.pid}`, + prefix: `collab`, pack, unpack, customEvents: {}, diff --git a/apps/server/src/collaboration/extensions/redis-sync/redis-sync.extension.ts b/apps/server/src/collaboration/extensions/redis-sync/redis-sync.extension.ts index 1a2182827..7d4400ad5 100644 --- a/apps/server/src/collaboration/extensions/redis-sync/redis-sync.extension.ts +++ b/apps/server/src/collaboration/extensions/redis-sync/redis-sync.extension.ts @@ -85,7 +85,7 @@ export class RedisSyncExtension implements Extension { this.lockTTL = lockTTL ?? 10_000; this.proxySocketTTL = proxySocketTTL ?? 30_000; this.customEventTTL = customEventTTL ?? 30_000; - this.prefix = prefix ?? 'rsa'; + this.prefix = prefix ?? 'collab'; this.lockPrefix = `${this.prefix}Lock`; this.msgChannel = `${this.prefix}Msg`; this.customEvents = (customEvents ?? {}) as unknown as TCE; @@ -275,9 +275,6 @@ export class RedisSyncExtension implements Extension { const proxyTo = await this.getOrClaimLockThrottled(documentName); if (proxyTo && proxyTo !== this.serverId) { - this.logger.debug( - `Doc "${documentName}" owned by server ${proxyTo}, forwarding event "${eventName}"`, - ); ++this.replyIdCounter; // bug in biome thinks this.replyIdCounter is not used if written on the line below const replyId = this.replyIdCounter; // another server owns the doc @@ -349,9 +346,6 @@ export class RedisSyncExtension implements Extension { const proxyTo = await this.getOrClaimLockThrottled(documentName); if (proxyTo && proxyTo !== this.serverId) { - this.logger.debug( - `Doc "${documentName}" owned by server ${proxyTo}, proxying message`, - ); // another server owns the doc const proxyMessage: RSAMessageProxy = { serializedHTTPRequest: serializedHTTPRequest,