remove vestigial mutex code

Correct me if I'm wrong, but mutex/mux are no longer being used, right?
This commit is contained in:
Robert Kieffer 2022-08-04 13:33:55 -07:00 committed by GitHub
parent bfb9d30eb9
commit c925c2400b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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<Object, Set<number>>}