mirror of
https://github.com/tokio-rs/tokio.git
synced 2026-08-07 00:00:09 +02:00
tinydb: Update doc to reflect change from RefCell to Mutex (#663)
Fixes: #658
This commit is contained in:
committed by
Stjepan Glavina
parent
ffd73a64e7
commit
46353737e7
+1
-1
@@ -56,7 +56,7 @@ use tokio::prelude::*;
|
||||
/// The in-memory database shared amongst all clients.
|
||||
///
|
||||
/// This database will be shared via `Arc`, so to mutate the internal map we're
|
||||
/// also going to use a `RefCell` for interior mutability.
|
||||
/// going to use a `Mutex` for interior mutability.
|
||||
struct Database {
|
||||
map: Mutex<HashMap<String, String>>,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user