mirror of
https://forgejo.ellis.link/continuwuation/continuwuity/
synced 2026-10-17 05:39:57 +00:00
style: Run formatting
This commit is contained in:
@@ -142,8 +142,8 @@ pub fn mark_healthy(&self, server_name: &ServerName) -> bool {
|
||||
|
||||
/// Returns a rate-limited error if the remote is unhealthy.
|
||||
fn ensure_remote_is_healthy(&self, server_name: &ServerName) -> Result<()> {
|
||||
// Read the backoff window once. The remote can be marked healthy between two
|
||||
// lookups.
|
||||
// Read the backoff window once. The remote can be marked healthy
|
||||
// between two lookups.
|
||||
let Some(retry_after) = self
|
||||
.retry_after(server_name)
|
||||
.filter(|retry_after| !retry_after.is_zero())
|
||||
|
||||
@@ -161,8 +161,8 @@ pub async fn handle_outlier_pdu<'a, Pdu>(
|
||||
}
|
||||
}
|
||||
|
||||
// 4. Reject "due to auth events" if the event doesn't pass auth based on the
|
||||
// claimed auth events
|
||||
// 4. Reject "due to auth events" if the event doesn't pass auth based
|
||||
// on the claimed auth events
|
||||
debug!("Checking based on auth events");
|
||||
let mut auth_events_by_key: HashMap<_, _> = HashMap::with_capacity(auth_events.len());
|
||||
// Build map of auth events
|
||||
|
||||
@@ -433,8 +433,9 @@ fn should_attempt_send(
|
||||
},
|
||||
});
|
||||
|
||||
// Only claim the destination if we are actually going to send. A status
|
||||
// inserted here without a transaction being queued is never cleared.
|
||||
// Only claim the destination if we are actually going to send. A
|
||||
// status inserted here without a transaction being queued is
|
||||
// never cleared.
|
||||
if allow {
|
||||
trace!("Inserting running status for {dest:?}");
|
||||
entry.or_insert(TransactionStatus::Running);
|
||||
|
||||
Reference in New Issue
Block a user