Skip to content

Commit ac1f004

Browse files
committed
fix: no need to check for namespace
1 parent c2dc0e2 commit ac1f004

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

src/y-socket-io/y-socket-io.js

+1-10
Original file line numberDiff line numberDiff line change
@@ -537,16 +537,7 @@ export class YSocketIO {
537537
await this.client.store.persistDoc(namespace, 'index', doc)
538538
}
539539

540-
/**
541-
* there's a possibility where the namespace is deleted after the
542-
* persist promise resolved, so we have to check if the room still
543-
* exist.
544-
* @see cleanupNamespace
545-
* @see cleanupNamespaceImpl
546-
*/
547-
if (this.namespaceMap.has(namespace)) {
548-
await this.client.trimRoomStream(namespace, 'index')
549-
}
540+
await this.client.trimRoomStream(namespace, 'index')
550541
} catch (e) {
551542
console.error(e)
552543
} finally {

0 commit comments

Comments
 (0)