Fix some unnecessary-unwraps w/ addl cleanup/simplification.
Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
parent
b3fc8516ed
commit
02081b66c4
6 changed files with 22 additions and 42 deletions
|
@ -195,7 +195,7 @@ impl Service {
|
|||
state_lock: &MutexGuard<'_, ()>, // Take mutex guard to make sure users get the room state mutex
|
||||
) -> Result<Vec<u8>> {
|
||||
// Coalesce database writes for the remainder of this scope.
|
||||
let _cork = services().globals.cork_and_flush()?;
|
||||
let _cork = services().globals.db.cork_and_flush();
|
||||
|
||||
let shortroomid = services()
|
||||
.rooms
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue