@@ -35,7 +35,7 @@ use nostr::{
|
|||||||
parser::NostrParser,
|
parser::NostrParser,
|
||||||
types::RelayUrl,
|
types::RelayUrl,
|
||||||
};
|
};
|
||||||
use nostr_sdk::Client;
|
use nostr_sdk::{Client, ClientOptions};
|
||||||
use traits::TokenUtils;
|
use traits::TokenUtils;
|
||||||
|
|
||||||
use crate::{
|
use crate::{
|
||||||
@@ -111,7 +111,8 @@ impl NostrClient {
|
|||||||
/// Initializes a new [`NostrClient`] instance and connects to the specified
|
/// Initializes a new [`NostrClient`] instance and connects to the specified
|
||||||
/// relays.
|
/// relays.
|
||||||
pub async fn init(options: &CliOptions, relays: &[RelayUrl]) -> Self {
|
pub async fn init(options: &CliOptions, relays: &[RelayUrl]) -> Self {
|
||||||
let mut client_builder = Client::builder();
|
let mut client_builder =
|
||||||
|
Client::builder().opts(ClientOptions::new().verify_subscriptions(true));
|
||||||
|
|
||||||
if let Ok(Some(signer)) = options.signer() {
|
if let Ok(Some(signer)) = options.signer() {
|
||||||
client_builder = client_builder.signer(signer);
|
client_builder = client_builder.signer(signer);
|
||||||
|
|||||||
Reference in New Issue
Block a user