multithreading #2
@ -98,7 +98,7 @@ impl Website {
|
||||
.await
|
||||
.expect("Failed to check surreal for duplicates!");
|
||||
|
||||
if let Some(old) = response.take::<Option<Website>>(0).expect("Failed to read reponse from surreal for duplicates.") {
|
||||
if let Some(old) = response.take::<Option<Website>>(0).expect("Failed to read response from surreal for duplicates.") {
|
||||
// site exists already
|
||||
if let Some(id) = old.id {
|
||||
// make sure to preserve the "crawled status"
|
||||
@ -119,7 +119,7 @@ impl Website {
|
||||
match error {
|
||||
Db::QueryCancelled => todo!(),
|
||||
Db::QueryNotExecuted => todo!(),
|
||||
Db::QueryNotExecutedDetail { message } => todo!(),
|
||||
Db::QueryNotExecutedDetail { message: _ } => todo!(),
|
||||
_=>{},
|
||||
}
|
||||
},
|
||||
|
Loading…
x
Reference in New Issue
Block a user