Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
fb751ba252 | ||
|
|
7c5e851b82 | ||
|
|
f965c53434 | ||
|
|
74376d94e5 |
Generated
+776
-640
File diff suppressed because it is too large
Load Diff
+2
-1
@@ -1,6 +1,6 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "nostr-rs-relay"
|
name = "nostr-rs-relay"
|
||||||
version = "0.8.10"
|
version = "0.8.12"
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
authors = ["Greg Heartsfield <scsibug@imap.cc>"]
|
authors = ["Greg Heartsfield <scsibug@imap.cc>"]
|
||||||
description = "A relay implementation for the Nostr protocol"
|
description = "A relay implementation for the Nostr protocol"
|
||||||
@@ -57,6 +57,7 @@ qrcode = { version = "0.12.0", default-features = false, features = ["svg"] }
|
|||||||
nostr = { version = "0.18.0", default-features = false, features = ["base", "nip04", "nip19"] }
|
nostr = { version = "0.18.0", default-features = false, features = ["base", "nip04", "nip19"] }
|
||||||
[target.'cfg(not(target_env = "msvc"))'.dependencies]
|
[target.'cfg(not(target_env = "msvc"))'.dependencies]
|
||||||
tikv-jemallocator = "0.5"
|
tikv-jemallocator = "0.5"
|
||||||
|
log = "0.4"
|
||||||
|
|
||||||
[dev-dependencies]
|
[dev-dependencies]
|
||||||
anyhow = "1"
|
anyhow = "1"
|
||||||
|
|||||||
+1
-1
@@ -40,7 +40,7 @@ description = "A newly created nostr-rs-relay.\n\nCustomize this with your own i
|
|||||||
# Use an in-memory database instead of 'nostr.db'.
|
# Use an in-memory database instead of 'nostr.db'.
|
||||||
# Requires sqlite engine.
|
# Requires sqlite engine.
|
||||||
# Caution; this will not survive a process restart!
|
# Caution; this will not survive a process restart!
|
||||||
in_memory = true
|
#in_memory = true
|
||||||
|
|
||||||
# Database connection pool settings for subscribers:
|
# Database connection pool settings for subscribers:
|
||||||
|
|
||||||
|
|||||||
@@ -11,6 +11,7 @@ use crate::repo::NostrRepo;
|
|||||||
use crate::server::NostrMetrics;
|
use crate::server::NostrMetrics;
|
||||||
use governor::clock::Clock;
|
use governor::clock::Clock;
|
||||||
use governor::{Quota, RateLimiter};
|
use governor::{Quota, RateLimiter};
|
||||||
|
use log::LevelFilter;
|
||||||
use nostr::key::FromPkStr;
|
use nostr::key::FromPkStr;
|
||||||
use nostr::key::Keys;
|
use nostr::key::Keys;
|
||||||
use r2d2;
|
use r2d2;
|
||||||
@@ -20,7 +21,6 @@ use sqlx::ConnectOptions;
|
|||||||
use std::sync::Arc;
|
use std::sync::Arc;
|
||||||
use std::thread;
|
use std::thread;
|
||||||
use std::time::{Duration, Instant};
|
use std::time::{Duration, Instant};
|
||||||
use tracing::log::LevelFilter;
|
|
||||||
use tracing::{debug, info, trace, warn};
|
use tracing::{debug, info, trace, warn};
|
||||||
|
|
||||||
pub type SqlitePool = r2d2::Pool<r2d2_sqlite::SqliteConnectionManager>;
|
pub type SqlitePool = r2d2::Pool<r2d2_sqlite::SqliteConnectionManager>;
|
||||||
|
|||||||
@@ -21,8 +21,7 @@ use crate::utils::{self, is_hex, is_lower_hex};
|
|||||||
use nostr::key::Keys;
|
use nostr::key::Keys;
|
||||||
use tokio::sync::mpsc::Sender;
|
use tokio::sync::mpsc::Sender;
|
||||||
use tokio::sync::oneshot::Receiver;
|
use tokio::sync::oneshot::Receiver;
|
||||||
use tracing::log::trace;
|
use tracing::{debug, error, info, trace, warn};
|
||||||
use tracing::{debug, error, info, warn};
|
|
||||||
|
|
||||||
pub type PostgresPool = sqlx::pool::Pool<Postgres>;
|
pub type PostgresPool = sqlx::pool::Pool<Postgres>;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user