Skip to content

Commit

Permalink
fixup! Introduce a secret inbox
Browse files Browse the repository at this point in the history
  • Loading branch information
poljar committed Jul 19, 2023
1 parent eedf737 commit dcd08ce
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions crates/matrix-sdk-crypto/src/gossiping/machine.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ use ruma::{
DeviceId, DeviceKeyAlgorithm, OwnedDeviceId, OwnedTransactionId, OwnedUserId, RoomId,
TransactionId, UserId,
};
use tracing::{debug, field::display, info, instrument, trace, warn, Span};
use tracing::{debug, field::debug, info, instrument, trace, warn, Span};
use vodozemac::{megolm::SessionOrdering, Curve25519PublicKey};

use super::{GossipRequest, GossippedSecret, RequestEvent, RequestInfo, SecretInfo, WaitQueue};
Expand Down Expand Up @@ -852,7 +852,7 @@ impl GossipMachine {
Ok(())
}

#[instrument(skip_all, fields(sender_key, sender = %event.sender, request_id = %event.content.request_id, secret_name))]
#[instrument(skip_all, fields(sender_key, sender = ?event.sender, request_id = ?event.content.request_id, secret_name))]
pub async fn receive_secret_event(
&self,
sender_key: Curve25519PublicKey,
Expand All @@ -873,7 +873,7 @@ impl GossipMachine {
None
}
SecretInfo::SecretRequest(secret_name) => {
Span::current().record("secret_name", display(secret_name));
Span::current().record("secret_name", debug(secret_name));

let secret_name = secret_name.to_owned();

Expand Down
2 changes: 1 addition & 1 deletion crates/matrix-sdk-crypto/src/store/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -735,7 +735,7 @@ impl Store {
)
.await?;
info!(
secret_name = %secret.secret_name,
secret_name = ?secret.secret_name,
"Successfully imported a private cross signing key"
);

Expand Down

0 comments on commit dcd08ce

Please sign in to comment.