Skip to content

Commit

Permalink
Use legacy name for transaction origin due to it being referenced in …
Browse files Browse the repository at this point in the history
…internal Hocuspocus code
  • Loading branch information
eriksson-daniel committed Feb 14, 2025
1 parent ed6e39a commit 2b5788f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion server/src/plugins/crdt/valkey-extension/valkey-extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ export class ValkeyExtension implements Extension {
readonly #identifier = `host-${randomUUID()}`;
readonly #disconnectDelay = 1_000;
readonly #valkeyConnectionRetryDelay = 100;
readonly #valkeyTransactionOrigin = '__hocuspocus__valkey__origin__';
// Referenced here: https://github.com/ueberdosis/hocuspocus/blob/main/packages/server/src/Hocuspocus.ts#L412
readonly #valkeyTransactionOrigin = '__hocuspocus__redis__origin__';
readonly #pub: ValkeyClientType;
readonly #sub: ValkeyClientType;
readonly #messagePrefix: Buffer;
Expand Down

0 comments on commit 2b5788f

Please sign in to comment.