More linting.
This commit is contained in:
1 parent
f4170610b0
commit
feaab2e843
5 files changed
+26
-33
No files matched your search
+2
-2
@@ -11,12 +11,12 @@ use crate::util::{CustomResult, SQLiteConnectionFactory};
|
||||
|
||||
// todo, all the "?" and handle the exceptions for real
|
||||
pub async fn event_processor_loop(
|
||||
conFact: SQLiteConnectionFactory,
|
||||
conn_fact: SQLiteConnectionFactory,
|
||||
r: async_channel::Receiver<Event>,
|
||||
) -> CustomResult<()> {
|
||||
loop {
|
||||
let res = r.recv().await;
|
||||
let mut conn = conFact.connection()?;
|
||||
let mut conn = conn_fact.connection()?;
|
||||
match res {
|
||||
Ok(event) => process_event(&mut conn, event)?,
|
||||
Err(e) => {
|
||||
|
||||
Reference in new issue
Block a user