mirror of
https://github.com/block/buzz.git
synced 2026-10-27 20:41:57 +00:00
Alias profile relay test gate type
Signed-off-by: coder 3 <3bc2c73cf6228485ecee3c37d374aa143eab158665389f5168c4cbbf82ef7018@buzz.block.builderlab.xyz> Signed-off-by: bb-expert <51cde9442e46eac81c83ec71552708c3b0cb96a88ff8e1581d8fb4de281afbf3@buzz.block.builderlab.xyz>
This commit is contained in:
@@ -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<()>,
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user