mirror of
https://gitlab.computer.surgery/matrix/grapevine.git
synced 2025-12-17 07:41:23 +01:00
sending.rs: formatting
This commit is contained in:
parent
aa69b7d15c
commit
5caafdec06
1 changed files with 17 additions and 14 deletions
|
|
@ -196,27 +196,30 @@ impl Service {
|
||||||
|
|
||||||
loop {
|
loop {
|
||||||
select! {
|
select! {
|
||||||
Some(response) = futures.next() =>
|
Some(response) = futures.next() => {
|
||||||
if let Some(HandlerInputs { kind, events }) =
|
if let Some(HandlerInputs {
|
||||||
self.handle_response(
|
kind,
|
||||||
|
events,
|
||||||
|
}) = self.handle_response(
|
||||||
response,
|
response,
|
||||||
&mut current_transaction_status,
|
&mut current_transaction_status,
|
||||||
)?
|
)? {
|
||||||
{
|
futures.push(Self::handle_events(kind, events));
|
||||||
futures.push(Self::handle_events(kind, events));
|
}
|
||||||
},
|
}
|
||||||
Some(data) = receiver.recv() =>
|
Some(data) = receiver.recv() => {
|
||||||
if let Some(HandlerInputs { kind, events }) =
|
if let Some(HandlerInputs {
|
||||||
self.handle_receiver(
|
kind,
|
||||||
data,
|
events,
|
||||||
&mut current_transaction_status,
|
}) = self
|
||||||
)
|
.handle_receiver(data, &mut current_transaction_status)
|
||||||
{
|
{
|
||||||
futures.push(Self::handle_events(kind, events));
|
futures.push(Self::handle_events(kind, events));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
#[tracing::instrument(
|
#[tracing::instrument(
|
||||||
skip(self, current_transaction_status),
|
skip(self, current_transaction_status),
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue