upleb.uk

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

summaryrefslogtreecommitdiff
path: root/src/bin/git_remote_nostr
diff options
context:
space:
mode:
authorDanConwayDev <DanConwayDev@protonmail.com>2024-11-11 13:08:35 +0000
committerDanConwayDev <DanConwayDev@protonmail.com>2024-11-11 13:08:35 +0000
commit30f1a3efa9265b1403a7aa68fffbd65291face3d (patch)
tree335ceb627f6ae4a81a74b2bbae3f8cf1a2da2f41 /src/bin/git_remote_nostr
parentf08ee98ab7e19d4e42ffa85aa619f012441fbe47 (diff)
chore: bump rust-nostr v0.36
bump all rust-nostr packages to latest issued version. there have been some breaking changes to nip46 and this applies these changes.
Diffstat (limited to 'src/bin/git_remote_nostr')
-rw-r--r--src/bin/git_remote_nostr/push.rs11
1 files changed, 5 insertions, 6 deletions
diff --git a/src/bin/git_remote_nostr/push.rs b/src/bin/git_remote_nostr/push.rs
index 8fc8349..91c901a 100644
--- a/src/bin/git_remote_nostr/push.rs
+++ b/src/bin/git_remote_nostr/push.rs
@@ -29,9 +29,8 @@ use ngit::{
29}; 29};
30use nostr::nips::nip10::Marker; 30use nostr::nips::nip10::Marker;
31use nostr_sdk::{ 31use nostr_sdk::{
32 hashes::sha1::Hash as Sha1Hash, Event, EventBuilder, EventId, Kind, PublicKey, Tag, 32 hashes::sha1::Hash as Sha1Hash, Event, EventBuilder, EventId, Kind, NostrSigner, PublicKey, Tag,
33}; 33};
34use nostr_signer::NostrSigner;
35use repo_ref::RepoRef; 34use repo_ref::RepoRef;
36use repo_state::RepoState; 35use repo_state::RepoState;
37 36
@@ -876,7 +875,7 @@ async fn get_merged_status_events(
876 repo_ref: &RepoRef, 875 repo_ref: &RepoRef,
877 git_repo: &Repo, 876 git_repo: &Repo,
878 remote_nostr_url: &str, 877 remote_nostr_url: &str,
879 signer: &NostrSigner, 878 signer: &Arc<dyn NostrSigner>,
880 refspecs_to_git_server: &Vec<String>, 879 refspecs_to_git_server: &Vec<String>,
881) -> Result<Vec<Event>> { 880) -> Result<Vec<Event>> {
882 let mut events = vec![]; 881 let mut events = vec![];
@@ -952,7 +951,7 @@ async fn get_merged_status_events(
952} 951}
953 952
954async fn create_merge_status( 953async fn create_merge_status(
955 signer: &NostrSigner, 954 signer: &Arc<dyn NostrSigner>,
956 repo_ref: &RepoRef, 955 repo_ref: &RepoRef,
957 proposal: &Event, 956 proposal: &Event,
958 revision: &Option<Event>, 957 revision: &Option<Event>,
@@ -1194,14 +1193,14 @@ trait BuildRepoState {
1194 async fn build( 1193 async fn build(
1195 identifier: String, 1194 identifier: String,
1196 state: HashMap<String, String>, 1195 state: HashMap<String, String>,
1197 signer: &NostrSigner, 1196 signer: &Arc<dyn NostrSigner>,
1198 ) -> Result<RepoState>; 1197 ) -> Result<RepoState>;
1199} 1198}
1200impl BuildRepoState for RepoState { 1199impl BuildRepoState for RepoState {
1201 async fn build( 1200 async fn build(
1202 identifier: String, 1201 identifier: String,
1203 state: HashMap<String, String>, 1202 state: HashMap<String, String>,
1204 signer: &NostrSigner, 1203 signer: &Arc<dyn NostrSigner>,
1205 ) -> Result<RepoState> { 1204 ) -> Result<RepoState> {
1206 let mut tags = vec![Tag::identifier(identifier.clone())]; 1205 let mut tags = vec![Tag::identifier(identifier.clone())];
1207 for (name, value) in &state { 1206 for (name, value) in &state {