1
0
Fork 0
mirror of https://gitlab.com/famedly/conduit.git synced 2024-11-17 13:50:49 +01:00

All the logs

This commit is contained in:
Timo Kösters 2023-02-23 11:49:35 +01:00
parent 2316d89048
commit b7c99788e4
No known key found for this signature in database
GPG key ID: 0B25E636FBA7E4CB
2 changed files with 6 additions and 2 deletions

View file

@ -1513,7 +1513,7 @@ impl Service {
}
}
info!("Asking individual servers for signing keys");
info!("Asking individual servers for signing keys: {servers:?}");
let mut futures: FuturesUnordered<_> = servers
.into_keys()
.map(|server| async move {
@ -1528,6 +1528,7 @@ impl Service {
.collect();
while let Some(result) = futures.next().await {
info!("Received new result");
if let (Ok(get_keys_response), origin) = result {
if let Ok(key) = get_keys_response.server_key.deserialize() {
let result: BTreeMap<_, _> = services()
@ -1542,6 +1543,7 @@ impl Service {
.insert(origin.to_string(), result);
}
}
info!("Done handling result");
}
info!("Search for signing keys done");

View file

@ -40,7 +40,7 @@ use tokio::{
select,
sync::{mpsc, Mutex, Semaphore},
};
use tracing::{error, warn};
use tracing::{error, info, warn};
#[derive(Clone, Debug, PartialEq, Eq, Hash)]
pub enum OutgoingKind {
@ -683,7 +683,9 @@ impl Service {
where
T: Debug,
{
info!("Waiting for permit");
let permit = self.maximum_requests.acquire().await;
info!("Got permit");
let response = tokio::time::timeout(
Duration::from_secs(2 * 60),
server_server::send_request(destination, request),