review
This commit is contained in:
@@ -12,10 +12,6 @@ use nostr_sdk::prelude::*;
|
||||
|
||||
use crate::signer::UniversalSigner;
|
||||
|
||||
/// Open or create the LMDB database at `db_path`.
|
||||
/// Build a Signed client and a fresh signer for it.
|
||||
/// The SDK manages its own internal tokio runtime.
|
||||
/// The returned client can be driven by GPUI's executors.
|
||||
#[cfg(not(target_arch = "wasm32"))]
|
||||
pub async fn new_backend(db_path: impl AsRef<Path>) -> Result<(Client, UniversalSigner)> {
|
||||
let signer = UniversalSigner::new(Keys::generate());
|
||||
|
||||
@@ -32,8 +32,6 @@ impl UniversalSignerError {
|
||||
}
|
||||
|
||||
/// A type-erased signer whose inner signer can be swapped in-place.
|
||||
/// Swaps happen after login or logout.
|
||||
/// All clones see the swap.
|
||||
#[derive(Clone, Debug)]
|
||||
pub struct UniversalSigner {
|
||||
inner: Arc<RwLock<Arc<dyn InnerSigner>>>,
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
use nostr_sdk::prelude::*;
|
||||
|
||||
/// A lightweight change notification for the UI.
|
||||
/// Heavy data stays in the database, consumers re-query on receipt.
|
||||
#[derive(Debug, Clone)]
|
||||
pub struct Update {
|
||||
pub kind: Kind,
|
||||
|
||||
Reference in New Issue
Block a user