mirror of
https://gitlab.computer.surgery/matrix/grapevine.git
synced 2025-12-18 08:11:24 +01:00
fix lints revealed by tracing change
<https://github.com/tokio-rs/tracing/pull/3108> changes #[instrument] so that several lints that were previously hidden on instrumented functions are now visible.
This commit is contained in:
parent
13203d3b45
commit
2648991092
12 changed files with 37 additions and 40 deletions
|
|
@ -82,6 +82,7 @@ impl Service {
|
|||
/// 13. Use state resolution to find new room state
|
||||
/// 14. Check if the event passes auth based on the "current state" of the
|
||||
/// room, if not soft fail it
|
||||
#[allow(clippy::too_many_lines)]
|
||||
#[tracing::instrument(skip(self, value, is_timeline_event, pub_key_map))]
|
||||
pub(crate) async fn handle_incoming_pdu<'a>(
|
||||
&self,
|
||||
|
|
@ -535,6 +536,7 @@ impl Service {
|
|||
})
|
||||
}
|
||||
|
||||
#[allow(clippy::too_many_lines)]
|
||||
#[tracing::instrument(skip_all, fields(
|
||||
incoming_pdu = %incoming_pdu.event_id,
|
||||
))]
|
||||
|
|
@ -1869,6 +1871,7 @@ impl Service {
|
|||
|
||||
/// Search the DB for the signing keys of the given server, if we don't have
|
||||
/// them fetch them from the server and save to our DB.
|
||||
#[allow(clippy::too_many_lines)]
|
||||
#[tracing::instrument(
|
||||
skip(self, signature_ids),
|
||||
fields(signature_ids = debug_slice_truncated(&signature_ids, 3))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue