diff options
author | Nyaaori <+@nyaaori.cat> | 2022-11-21 09:51:39 +0100 |
---|---|---|
committer | Nyaaori <+@nyaaori.cat> | 2022-11-21 20:50:39 +0100 |
commit | 66bc41125c244b3a1d17a5590882ba1b71212cc7 (patch) | |
tree | a99227d5e899bd7f3bd1250925f17abf1a4f5b4e /src/database | |
parent | 6786c44f4df96e7505b68c165b6a275b556f7ab6 (diff) | |
download | conduit-66bc41125c244b3a1d17a5590882ba1b71212cc7.zip |
refactor: cleanup
Diffstat (limited to 'src/database')
-rw-r--r-- | src/database/key_value/pusher.rs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/database/key_value/pusher.rs b/src/database/key_value/pusher.rs index b203107..50a6fac 100644 --- a/src/database/key_value/pusher.rs +++ b/src/database/key_value/pusher.rs @@ -22,11 +22,10 @@ impl service::pusher::Data for KeyValueDatabase { let mut key = sender.as_bytes().to_vec(); key.push(0xff); key.extend_from_slice(ids.pushkey.as_bytes()); - return self - .senderkey_pusher + self.senderkey_pusher .remove(&key) .map(|_| ()) - .map_err(Into::into); + .map_err(Into::into) } } } |