upleb.uk

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

summaryrefslogtreecommitdiff
path: root/src/sub_commands/list.rs
diff options
context:
space:
mode:
authorDanConwayDev <DanConwayDev@protonmail.com>2024-08-28 14:20:34 +0100
committerDanConwayDev <DanConwayDev@protonmail.com>2024-08-28 16:42:53 +0100
commita5216602749bff55c2773acce098c91942cd3920 (patch)
treef1961c73d0586cab4de8fd54aafd9ba8171f3adb /src/sub_commands/list.rs
parent2045aa5d928306f2a03cc924eac9c453c399b9b8 (diff)
chore: bump rust-nostr to v0.34.0
bump all rust-nostr packages I'm not sure I'm completely happy with allowing mutable_key_type but it is just run inside tests it appears that Event didn't have the Copy trait in v0.33.0 so I'm not sure why this warning suddenly appeared the timeout of client.get_events_of needed to be doubled which could indicate that an ineffiency has been introduced in v0.34.0 the primary motivation for upgrading now was to get this fix: nostr:nevent1qqsffl2ld678pjj77rh9k2g4edljmxdu6ew4lvgnglxv7jhu3ru8vvcpp4mhxue69uhkummn9ekx7mqzyzsq3hh327t0h2dq6matqn5064cgj2zanl2stkj6s0lg4t2h5dty6rm2ucm as I suspect it is also effecting other repositories eg nostr-profile-manager
Diffstat (limited to 'src/sub_commands/list.rs')
-rw-r--r--src/sub_commands/list.rs7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/sub_commands/list.rs b/src/sub_commands/list.rs
index 73ef107..ac1f4ab 100644
--- a/src/sub_commands/list.rs
+++ b/src/sub_commands/list.rs
@@ -78,7 +78,8 @@ pub async fn launch() -> Result<()> {
78 .iter() 78 .iter()
79 .filter(|e| { 79 .filter(|e| {
80 status_kinds().contains(&e.kind()) 80 status_kinds().contains(&e.kind())
81 && e.iter_tags() 81 && e.tags()
82 .iter()
82 .any(|t| t.as_vec()[1].eq(&proposal.id.to_string())) 83 .any(|t| t.as_vec()[1].eq(&proposal.id.to_string()))
83 }) 84 })
84 .collect::<Vec<&nostr::Event>>() 85 .collect::<Vec<&nostr::Event>>()
@@ -873,7 +874,7 @@ pub async fn get_all_proposal_patch_events_from_cache(
873 .iter() 874 .iter()
874 .copied() 875 .copied()
875 .collect(); 876 .collect();
876 commit_events.retain(|e| permissioned_users.contains(e.author_ref())); 877 commit_events.retain(|e| permissioned_users.contains(&e.author()));
877 878
878 let revision_roots: HashSet<nostr::EventId> = commit_events 879 let revision_roots: HashSet<nostr::EventId> = commit_events
879 .iter() 880 .iter()
@@ -899,7 +900,7 @@ pub async fn get_all_proposal_patch_events_from_cache(
899 900
900 Ok(commit_events 901 Ok(commit_events
901 .iter() 902 .iter()
902 .filter(|e| !event_is_cover_letter(e) && permissioned_users.contains(e.author_ref())) 903 .filter(|e| !event_is_cover_letter(e) && permissioned_users.contains(&e.author()))
903 .cloned() 904 .cloned()
904 .collect()) 905 .collect())
905} 906}