move state types from signed_core into signed_state
This commit is contained in:
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user