upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/src/client.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/client.rs')
-rw-r--r--src/client.rs16
1 files changed, 11 insertions, 5 deletions
diff --git a/src/client.rs b/src/client.rs
index 0757359..ccd5cfb 100644
--- a/src/client.rs
+++ b/src/client.rs
@@ -909,11 +909,17 @@ async fn create_relays_request(
909 } 909 }
910 let mut map: HashMap<PublicKey, (Timestamp, Timestamp)> = HashMap::new(); 910 let mut map: HashMap<PublicKey, (Timestamp, Timestamp)> = HashMap::new();
911 for public_key in &user_profiles { 911 for public_key in &user_profiles {
912 let user_ref = get_user_ref_from_cache(git_repo_path, public_key).await?; 912 if let Ok(user_ref) = get_user_ref_from_cache(git_repo_path, public_key).await {
913 map.insert( 913 map.insert(
914 public_key.to_owned(), 914 public_key.to_owned(),
915 (user_ref.metadata.created_at, user_ref.relays.created_at), 915 (user_ref.metadata.created_at, user_ref.relays.created_at),
916 ); 916 );
917 } else {
918 map.insert(
919 public_key.to_owned(),
920 (Timestamp::from(0), Timestamp::from(0)),
921 );
922 }
917 } 923 }
918 map 924 map
919 }; 925 };