chore: remove storage layer

This commit is contained in:
2024-02-22 08:58:45 +07:00
parent 9127d5c5ea
commit e9ce932646
10 changed files with 150 additions and 425 deletions

View File

@@ -47,15 +47,19 @@ fn main() {
client
.add_relay("wss://nostr.mutinywallet.com")
.await
.expect("Failed to add bootstrap relay.");
.unwrap_or_default();
client
.add_relay("wss://bostr.yonle.lecturify.net")
.add_relay("wss://relay.nostr.band")
.await
.expect("Failed to add bootstrap relay.");
.unwrap_or_default();
client
.add_relay("wss://relay.damus.io")
.await
.unwrap_or_default();
client
.add_relay("wss://purplepag.es")
.await
.expect("Failed to add bootstrap relay.");
.unwrap_or_default();
// Connect
client.connect().await;

View File

@@ -48,7 +48,6 @@ pub async fn save_key(
.get_contact_list_public_keys(Some(Duration::from_secs(10)))
.await
{
println!("total contacts: {}", list.len());
*contact_list = Some(list);
}
@@ -161,7 +160,6 @@ pub async fn load_selected_account(
.get_contact_list_public_keys(Some(Duration::from_secs(10)))
.await
{
println!("total contacts: {}", list.len());
*contact_list = Some(list);
}