coder 3
2026-09-29 20:52:23 -06:00
committed by bb-expert
parent 99c8219e1d
commit b9d88de41c

View File

@@ -522,10 +522,13 @@ mod tests {
Submit,
}
type ProfileRelayGateState =
Arc<tokio::sync::Mutex<Option<(ProfileRelayGate, oneshot::Receiver<()>)>>>;
#[derive(Clone)]
struct ProfileRelayState {
current: Arc<tokio::sync::Mutex<Option<nostr::Event>>>,
gate: Arc<tokio::sync::Mutex<Option<(ProfileRelayGate, oneshot::Receiver<()>)>>>,
gate: ProfileRelayGateState,
gate_started: mpsc::Sender<()>,
}