fix: ues try_lock

This commit is contained in:
Zixuan Chen 2022-12-13 14:47:19 +08:00
parent 848f66f327
commit cf1f7dc443

View file

@ -110,7 +110,7 @@ impl LoroCore {
.write()
.unwrap()
.hierarchy
.lock()
.try_lock()
.unwrap()
.subscribe_root(observer)
}
@ -120,7 +120,7 @@ impl LoroCore {
.write()
.unwrap()
.hierarchy
.lock()
.try_lock()
.unwrap()
.unsubscribe_root(subscription)
}