refactor: clippy suggestions

This commit is contained in:
Greg Heartsfield
2021-12-11 21:56:52 -06:00
parent ca0f01c94b
commit e732f918f9
7 changed files with 37 additions and 42 deletions
+3 -6
View File
@@ -177,12 +177,9 @@ async fn nostr_server(
match parsed {
Ok(c) => {
let stop_tx = running_queries.remove(&c.id);
match stop_tx {
Some(tx) => {
info!("Removing query, telling DB to abandon query");
tx.send(()).ok();
},
None => {}
if let Some(tx) = stop_tx {
info!("Removing query, telling DB to abandon query");
tx.send(()).ok();
}
conn.unsubscribe(c);
},