Simplify Pdu Hashes struct.

Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
Jason Volk
2025-07-08 11:55:52 +00:00
parent 3ea8c82ef0
commit 190269f616
6 changed files with 19 additions and 12 deletions

View File

@@ -418,7 +418,7 @@ where
auth_events,
prev_events,
depth: uint!(0),
hashes: EventHash { sha256: String::new() },
hashes: EventHash::default(),
signatures: None,
}
}

View File

@@ -426,7 +426,7 @@ pub(crate) fn to_init_pdu_event(
auth_events: vec![],
prev_events: vec![],
depth: uint!(0),
hashes: EventHash { sha256: "".to_owned() },
hashes: EventHash::default(),
signatures: None,
}
}
@@ -474,7 +474,7 @@ where
auth_events,
prev_events,
depth: uint!(0),
hashes: EventHash { sha256: "".to_owned() },
hashes: EventHash::default(),
signatures: None,
}
}