There can be more than Notion and Miro. AFFiNE(pronounced [ə‘fain]) is a next-gen knowledge base that brings planning, sorting and creating all together. Privacy first, open-source, customizable and ready to use.
TypeScript appcrdteditorelectronknowledge-basemarkdownmironotesnotionnotion-alternativerustrust-langrust-languagetabletableviewwhiteboardwikiworkspace
fix(server): same identify across pods (#9428)
darkskygit47ba0a8a32d6
diff --git a/packages/backend/server/src/base/mutex/mutex.ts b/packages/backend/server/src/base/mutex/mutex.tsindex fc1e640308..d78f606317 100644--- a/packages/backend/server/src/base/mutex/mutex.ts+++ b/packages/backend/server/src/base/mutex/mutex.ts@@ -14,6 +14,7 @@ export const MUTEX_WAIT = 100;@Injectable()export class Mutex {protected logger = new Logger(Mutex.name);+ private readonly clusterIdentifier = `cluster:${randomUUID()}`;constructor(protected readonly locker: Locker) {}@@ -38,7 +39,7 @@ export class Mutex {* @param key resource key* @returns LockGuard*/- async acquire(key: string, owner: string = 'global') {+ async acquire(key: string, owner: string = this.clusterIdentifier) {try {return await retryable(() => this.locker.lock(owner, key),