#[cfg(not(target_arch = "wasm32"))]
use std::net::SocketAddr;
use nostr_relay_pool::{RelayOptions, RelayPoolOptions};
#[derive(Debug, Clone, Default)]
pub struct NostrWalletConnectOptions {
pub(super) relay: RelayOptions,
pub(super) pool: RelayPoolOptions,
}
impl NostrWalletConnectOptions {
pub fn new() -> Self {
Self::default()
}
#[cfg(not(target_arch = "wasm32"))]
pub fn proxy(self, proxy: Option<SocketAddr>) -> Self {
Self {
relay: self.relay.proxy(proxy),
..self
}
}
pub fn shutdown_on_drop(self, shutdown_on_drop: bool) -> Self {
Self {
pool: self.pool.shutdown_on_drop(shutdown_on_drop),
..self
}
}
}