From e4536f680f97b8d25f18104adc7ec65deccecccf Mon Sep 17 00:00:00 2001 From: Yuki Kishimoto Date: Wed, 10 Apr 2024 10:11:10 +0200 Subject: [PATCH] pool: add `constants` module Signed-off-by: Yuki Kishimoto --- crates/nostr-relay-pool/src/pool/constants.rs | 7 +++++++ crates/nostr-relay-pool/src/pool/mod.rs | 1 + 2 files changed, 8 insertions(+) create mode 100644 crates/nostr-relay-pool/src/pool/constants.rs diff --git a/crates/nostr-relay-pool/src/pool/constants.rs b/crates/nostr-relay-pool/src/pool/constants.rs new file mode 100644 index 000000000..603539642 --- /dev/null +++ b/crates/nostr-relay-pool/src/pool/constants.rs @@ -0,0 +1,7 @@ +// Copyright (c) 2022-2023 Yuki Kishimoto +// Copyright (c) 2023-2024 Rust Nostr Developers +// Distributed under the MIT software license + +//! Constants + +pub const DEFAULT_DISCOVERY_RELAYS: [&str; 1] = ["wss://purplepag.es"]; diff --git a/crates/nostr-relay-pool/src/pool/mod.rs b/crates/nostr-relay-pool/src/pool/mod.rs index 36540cc65..36c87f501 100644 --- a/crates/nostr-relay-pool/src/pool/mod.rs +++ b/crates/nostr-relay-pool/src/pool/mod.rs @@ -17,6 +17,7 @@ use nostr::{ use nostr_database::{DynNostrDatabase, IntoNostrDatabase, MemoryDatabase}; use tokio::sync::broadcast; +mod constants; mod error; mod internal; pub mod options;