diff options
| author | Jokler <jokler.contact@gmail.com> | 2018-03-21 16:40:15 +0100 |
|---|---|---|
| committer | Jokler <jokler.contact@gmail.com> | 2018-03-21 16:40:15 +0100 |
| commit | 516ee046784acb4a6dc97b844ff3af9a54308e30 (patch) | |
| tree | 672f422c6817734c7404ec26569a366319c1a183 /src/plugins/tell/database.rs | |
| parent | 48f547826edd9db9b94376f240a785d8a19a993d (diff) | |
| download | frippy-516ee046784acb4a6dc97b844ff3af9a54308e30.tar.gz frippy-516ee046784acb4a6dc97b844ff3af9a54308e30.zip | |
Replace every Mutex with RwLock
Diffstat (limited to 'src/plugins/tell/database.rs')
| -rw-r--r-- | src/plugins/tell/database.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/tell/database.rs b/src/plugins/tell/database.rs index 98e9fb3..42c0d88 100644 --- a/src/plugins/tell/database.rs +++ b/src/plugins/tell/database.rs @@ -40,7 +40,7 @@ pub struct NewTellMessage<'a> { pub message: &'a str, } -pub trait Database: Send { +pub trait Database: Send + Sync { fn insert_tell(&mut self, tell: &NewTellMessage) -> Result<(), TellError>; fn get_tells(&self, receiver: &str) -> Result<Vec<TellMessage>, TellError>; fn get_receivers(&self) -> Result<Vec<String>, TellError>; |
