Skip to content

Commit 7465349

Browse files
committed
Remove TODO usage entities in message
1 parent ea9a069 commit 7465349

File tree

3 files changed

+1
-6
lines changed

3 files changed

+1
-6
lines changed

mithril-common/src/messages/certificate.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
11
use serde::{Deserialize, Serialize};
22

3-
// TODO: We should probably not rely on entities when defining the message
43
use crate::entities::{Beacon, CertificateMetadata, ProtocolMessage};
54

65
#[cfg(any(test, feature = "test_only"))]
7-
// TODO: We should probably not rely on entities when defining the message
86
use crate::entities::{ProtocolMessagePartKey, ProtocolParameters, SignerWithStake};
97

108
/// Message structure of a certificate

mithril-common/src/messages/snapshot.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
use serde::{Deserialize, Serialize};
22

3-
// TODO: We should probably not rely on entities when defining the message
43
use crate::entities::Beacon;
54

6-
// TODO: We should probably not rely on entities when defining the message
75
#[cfg(any(test, feature = "test_only"))]
86
use crate::entities::Epoch;
97
/// Message structure of a snapshot

mithril-common/src/messages/snapshot_list.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
use serde::{Deserialize, Serialize};
22

3-
// TODO: We should probably not rely on entities when defining the message
43
use crate::entities::Beacon;
54

6-
// TODO: We should probably not rely on entities when defining the message
75
#[cfg(any(test, feature = "test_only"))]
86
use crate::entities::Epoch;
7+
98
/// Message structure of a snapshot list
109
pub type SnapshotListMessage = Vec<SnapshotListItemMessage>;
1110

0 commit comments

Comments
 (0)