1
0
Fork 0
mirror of https://gitlab.com/famedly/conduit.git synced 2025-01-04 02:54:09 +01:00

fix: also return successful PDUs in /send/:txnId

This commit is contained in:
Gabriel Souza Franco 2021-05-27 13:59:40 -03:00
parent 25b1cd2683
commit 7db59c550f

View file

@ -628,7 +628,9 @@ pub async fn send_transaction_message_route<'a>(
}; };
let start_time = Instant::now(); let start_time = Instant::now();
if let Err(e) = handle_incoming_pdu( resolved_map.insert(
event_id.clone(),
handle_incoming_pdu(
&body.origin, &body.origin,
&event_id, &event_id,
value, value,
@ -638,9 +640,8 @@ pub async fn send_transaction_message_route<'a>(
&mut auth_cache, &mut auth_cache,
) )
.await .await
{ .map(|_| ()),
resolved_map.insert(event_id.clone(), Err(e)); );
}
let elapsed = start_time.elapsed(); let elapsed = start_time.elapsed();
if elapsed > Duration::from_secs(1) { if elapsed > Duration::from_secs(1) {