diff options
| author | DanConwayDev <DanConwayDev@protonmail.com> | 2026-02-25 15:07:40 +0000 |
|---|---|---|
| committer | DanConwayDev <DanConwayDev@protonmail.com> | 2026-02-25 15:07:40 +0000 |
| commit | 5ad9d9093fcbe7037e5474a9d8fa20a0b64fb79a (patch) | |
| tree | 3c22fb4b42a62badedc29963d1ce39a2fbc83bb1 /src/nostr/builder.rs | |
| parent | 4fc3b279d3eb86993f7748959a3986be5a6c49a7 (diff) | |
drop nostr-db backend support, keep only lmdb and memory
Diffstat (limited to 'src/nostr/builder.rs')
| -rw-r--r-- | src/nostr/builder.rs | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/src/nostr/builder.rs b/src/nostr/builder.rs index 7a05348..a0088e1 100644 --- a/src/nostr/builder.rs +++ b/src/nostr/builder.rs | |||
| @@ -689,16 +689,6 @@ pub async fn create_relay( | |||
| 689 | max_events: Some(NonZeroUsize::new(100_000).unwrap()), | 689 | max_events: Some(NonZeroUsize::new(100_000).unwrap()), |
| 690 | })) | 690 | })) |
| 691 | } | 691 | } |
| 692 | DatabaseBackend::NostrDb => { | ||
| 693 | tracing::info!("Using NostrDB backend at: {}", db_path.display()); | ||
| 694 | // TODO: Implement NostrDB backend once nostr-relay-builder supports it | ||
| 695 | // For now, fall back to memory database | ||
| 696 | tracing::warn!("NostrDB backend not yet implemented, using in-memory database"); | ||
| 697 | Arc::new(MemoryDatabase::with_opts(MemoryDatabaseOptions { | ||
| 698 | events: true, | ||
| 699 | max_events: Some(NonZeroUsize::new(100_000).unwrap()), | ||
| 700 | })) | ||
| 701 | } | ||
| 702 | DatabaseBackend::Lmdb => { | 692 | DatabaseBackend::Lmdb => { |
| 703 | tracing::info!("Using LMDB backend at: {}", db_path.display()); | 693 | tracing::info!("Using LMDB backend at: {}", db_path.display()); |
| 704 | // Ensure the database directory exists | 694 | // Ensure the database directory exists |