Merge pull request #113 from broofa/patch-1

remove vestigial mutex code
This commit is contained in:
Kevin Jahns 2022-08-05 10:15:09 +02:00 committed by GitHub
commit 625a9d52ba
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 encoding = require('lib0/dist/encoding.cjs')
const decoding = require('lib0/dist/decoding.cjs') const decoding = require('lib0/dist/decoding.cjs')
const mutex = require('lib0/dist/mutex.cjs')
const map = require('lib0/dist/map.cjs') const map = require('lib0/dist/map.cjs')
const debounce = require('lodash.debounce') const debounce = require('lodash.debounce')
@ -92,7 +91,6 @@ class WSSharedDoc extends Y.Doc {
constructor (name) { constructor (name) {
super({ gc: gcEnabled }) super({ gc: gcEnabled })
this.name = name 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 * 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>>} * @type {Map<Object, Set<number>>}