From c925c2400bf3ef1c23be1035fb788baf05037bbe Mon Sep 17 00:00:00 2001 From: Robert Kieffer Date: Thu, 4 Aug 2022 13:33:55 -0700 Subject: [PATCH] remove vestigial mutex code Correct me if I'm wrong, but mutex/mux are no longer being used, right? --- bin/utils.js | 2 -- 1 file changed, 2 deletions(-) diff --git a/bin/utils.js b/bin/utils.js index 0c9a7b7..05f8b88 100644 --- a/bin/utils.js +++ b/bin/utils.js @@ -4,7 +4,6 @@ const awarenessProtocol = require('y-protocols/dist/awareness.cjs') const encoding = require('lib0/dist/encoding.cjs') const decoding = require('lib0/dist/decoding.cjs') -const mutex = require('lib0/dist/mutex.cjs') const map = require('lib0/dist/map.cjs') const debounce = require('lodash.debounce') @@ -92,7 +91,6 @@ class WSSharedDoc extends Y.Doc { constructor (name) { super({ gc: gcEnabled }) this.name = name - this.mux = mutex.createMutex() /** * Maps from conn to set of controlled user ids. Delete all user ids from awareness when this conn is closed * @type {Map>}