Correct and document topic subscription

This commit is contained in:
Luke Parker
2025-01-08 23:16:04 -05:00
parent 20326bba73
commit 6cde2bb6ef
2 changed files with 28 additions and 9 deletions

View File

@@ -31,10 +31,10 @@ pub(crate) enum Message {
}
impl Message {
pub(crate) fn topic(&self) -> TopicHash {
pub(crate) fn topic(&self) -> IdentTopic {
match self {
Message::Tributary { tributary, .. } => topic_for_tributary(*tributary).hash(),
Message::Cosign(_) => IdentTopic::new(BASE_TOPIC).hash(),
Message::Tributary { tributary, .. } => topic_for_tributary(*tributary),
Message::Cosign(_) => IdentTopic::new(BASE_TOPIC),
}
}
}