Load runtime state before frontier repair
This commit is contained in:
parent
80c6ff8841
commit
f7bcb8ed8a
4 changed files with 16 additions and 12 deletions
|
|
@ -30,7 +30,9 @@ fn main() -> Result<()> {
|
|||
let store = PathBuf::from(take("--store")?);
|
||||
let route_id = take("--route-id")?;
|
||||
if command == "inspect-frontier-execution" {
|
||||
let routes = runtime_spine_cache(&store)?.get_all::<RepoFrontierRoute>()?;
|
||||
let mut cache = runtime_spine_cache(&store)?;
|
||||
cache.pull_all_backing_stores()?;
|
||||
let routes = cache.get_all::<RepoFrontierRoute>()?;
|
||||
let available = routes
|
||||
.iter()
|
||||
.map(|route| route.route_id.as_str())
|
||||
|
|
|
|||
|
|
@ -7298,7 +7298,8 @@ pub fn amend_repo_frontier_execution(
|
|||
if chrono::DateTime::parse_from_rfc3339(&amendment.amended_at).is_err() {
|
||||
return Err(anyhow!("execution amendment amended_at must be RFC3339"));
|
||||
}
|
||||
let cache = runtime_spine_cache(store_path)?;
|
||||
let mut cache = runtime_spine_cache(store_path)?;
|
||||
cache.pull_all_backing_stores()?;
|
||||
if cache
|
||||
.get::<RepoFrontierExecutionAmendmentReceipt>(&amendment.amendment_id)?
|
||||
.is_some()
|
||||
|
|
|
|||
Reference in a new issue