move state types from signed_core into signed_state

This commit is contained in:
2026-10-13 18:01:38 +07:00
parent 74e1226b93
commit 5b16ba50c2
8 changed files with 99 additions and 36 deletions
+4 -3
View File
@@ -3,7 +3,8 @@ use std::path::Path;
use anyhow::Error;
use nostr::prelude::Url;
use nostr_sdk::prelude::*;
use signed_core::RepoState;
use crate::state::{GitRef, SyncState};
/// `ws://` grasp servers, like ngit, use `http(s)://<host>`.
pub(crate) fn grasp_base_url(relay: &RelayUrl) -> Option<String> {
@@ -133,7 +134,7 @@ pub(crate) async fn push_staged_to_grasps<S>(
client: &Client,
signer: &S,
repo_id: &str,
refs: &[(String, String)],
refs: &[GitRef],
head: Option<&str>,
path: &Path,
owner: &str,
@@ -153,7 +154,7 @@ where
continue;
};
let event = match RepoState::build(repo_id, refs, head)
let event = match SyncState::build(repo_id, refs, head)
.finalize_async(signer)
.await
{