mirror of
https://github.com/astro/buzzrelay.git
synced 2024-11-21 19:51:00 +00:00
update dependencies
This commit is contained in:
parent
feca0fc0cb
commit
46550ac044
2 changed files with 279 additions and 250 deletions
521
Cargo.lock
generated
521
Cargo.lock
generated
File diff suppressed because it is too large
Load diff
|
@ -55,8 +55,12 @@ pub fn spawn(hosts: impl Iterator<Item = impl Into<String>>) -> Receiver<String>
|
||||||
stream.for_each(|post| async {
|
stream.for_each(|post| async {
|
||||||
tx.send(post).await.unwrap();
|
tx.send(post).await.unwrap();
|
||||||
}).await,
|
}).await,
|
||||||
Err(e) =>
|
Err(StreamError::Http(e)) =>
|
||||||
tracing::error!("stream: {:?}", 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;
|
sleep(Duration::from_secs(1)).await;
|
||||||
|
|
Loading…
Reference in a new issue