add icons
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
#[cfg(not(target_arch = "wasm32"))]
|
||||
use std::path::Path;
|
||||
use std::time::Duration;
|
||||
|
||||
use anyhow::{Context, Result};
|
||||
@@ -16,9 +18,7 @@ use crate::signer::UniversalSigner;
|
||||
/// 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<std::path::Path>,
|
||||
) -> Result<(Client, UniversalSigner)> {
|
||||
pub async fn new_backend(db_path: impl AsRef<Path>) -> Result<(Client, UniversalSigner)> {
|
||||
let signer = UniversalSigner::new(Keys::generate());
|
||||
let database = NostrLmdb::open(db_path)
|
||||
.await
|
||||
|
||||
Reference in New Issue
Block a user