upleb.uk

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

summaryrefslogtreecommitdiff
path: root/src/bin/git_remote_nostr/utils.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/bin/git_remote_nostr/utils.rs')
-rw-r--r--src/bin/git_remote_nostr/utils.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/bin/git_remote_nostr/utils.rs b/src/bin/git_remote_nostr/utils.rs
index 15ebb10..316fedb 100644
--- a/src/bin/git_remote_nostr/utils.rs
+++ b/src/bin/git_remote_nostr/utils.rs
@@ -184,10 +184,10 @@ pub async fn get_all_proposals(
184 184
185pub fn find_proposal_and_patches_by_branch_name<'a>( 185pub fn find_proposal_and_patches_by_branch_name<'a>(
186 refstr: &'a str, 186 refstr: &'a str,
187 open_proposals: &'a HashMap<EventId, (Event, Vec<Event>)>, 187 proposals: &'a HashMap<EventId, (Event, Vec<Event>)>,
188 current_user: Option<&PublicKey>, 188 current_user: Option<&PublicKey>,
189) -> Option<(&'a EventId, &'a (Event, Vec<Event>))> { 189) -> Option<(&'a EventId, &'a (Event, Vec<Event>))> {
190 open_proposals.iter().find(|(_, (proposal, _))| { 190 proposals.iter().find(|(_, (proposal, _))| {
191 is_event_proposal_root_for_branch(proposal, refstr, current_user).unwrap_or(false) 191 is_event_proposal_root_for_branch(proposal, refstr, current_user).unwrap_or(false)
192 }) 192 })
193} 193}