Skip to content

Commit 8592e1e

Browse files
committed
Impl Debug for CheckEnvelope
1 parent 5b34a9d commit 8592e1e

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

relay-server/src/actors/project.rs

+9-1
Original file line numberDiff line numberDiff line change
@@ -685,13 +685,21 @@ impl Handler<GetProjectState> for Project {
685685
/// - Validate origins and public keys
686686
/// - Quotas with a limit of `0`
687687
/// - Cached rate limits
688-
// #[derive(Debug)] // TODO: Fix?
689688
pub struct CheckEnvelope {
690689
envelope: Envelope,
691690
fetch: bool,
692691
outcome_producer: Addr<OutcomeProducer>,
693692
}
694693

694+
impl std::fmt::Debug for CheckEnvelope {
695+
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
696+
f.debug_struct("CheckEnvelope")
697+
.field("envelope", &self.envelope)
698+
.field("fetch", &self.fetch)
699+
.finish()
700+
}
701+
}
702+
695703
impl CheckEnvelope {
696704
/// Fetches the project state and checks the envelope.
697705
pub fn fetched(envelope: Envelope, outcome_producer: &Addr<OutcomeProducer>) -> Self {

0 commit comments

Comments
 (0)