update dependencies

This commit is contained in:
Astro 2024-10-04 01:13:16 +02:00
parent feca0fc0cb
commit 46550ac044
2 changed files with 279 additions and 250 deletions

521
Cargo.lock generated

File diff suppressed because it is too large Load diff

View file

@ -55,8 +55,12 @@ pub fn spawn(hosts: impl Iterator<Item = impl Into<String>>) -> Receiver<String>
stream.for_each(|post| async {
tx.send(post).await.unwrap();
}).await,
Err(e) =>
tracing::error!("stream: {:?}", e),
Err(StreamError::Http(e)) =>
tracing::error!("stream http error: {:?}", e),
Err(StreamError::HttpStatus(status)) =>
tracing::error!("stream http status: {:?}", status),
Err(StreamError::InvalidContentType) =>
tracing::error!("stream invalid content-type"),
}
sleep(Duration::from_secs(1)).await;