wip: refactor

This commit is contained in:
reya
2025-01-02 09:58:42 +07:00
parent d53e75b775
commit 51b392a845
11 changed files with 94 additions and 188 deletions
+4 -6
View File
@@ -5,14 +5,12 @@ use tokio::sync::mpsc::UnboundedSender;
#[derive(Clone)]
pub enum Signal {
/// Request metadata
ReqMetadata(PublicKey),
/// Receive metadata
RecvMetadata(PublicKey),
/// Receive EOSE
RecvEose(SubscriptionId),
Metadata(PublicKey),
/// Receive event
RecvEvent(Event),
Event(Event),
/// Receive EOSE
Eose,
}
pub struct SignalRegistry {