tinydb: Update doc to reflect change from RefCell to Mutex (#663)

Fixes: #658
This commit is contained in:
Andrew Tunnell-Jones
2018-09-26 11:47:31 +02:00
committed by Stjepan Glavina
parent ffd73a64e7
commit 46353737e7
+1 -1
View File
@@ -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>>,
}