diff --git a/crates/radicle-cli/src/commands/inspect.rs b/crates/radicle-cli/src/commands/inspect.rs index 656fa798..70194dc4 100644 --- a/crates/radicle-cli/src/commands/inspect.rs +++ b/crates/radicle-cli/src/commands/inspect.rs @@ -14,7 +14,7 @@ use radicle::identity::{DocAt, Identity}; use radicle::node::policy::SeedingPolicy; use radicle::node::AliasStore as _; use radicle::storage::git::{Repository, Storage}; -use radicle::storage::refs::{FeatureLevel, RefsAt}; +use radicle::storage::refs::{FeatureLevel, RefsAt, SignedRefs}; use radicle::storage::{ReadRepository, ReadStorage}; use crate::terminal as term; @@ -68,7 +68,7 @@ pub fn run(args: Args, ctx: impl term::Context) -> anyhow::Result<()> { for remote in repo.remote_ids()? { let remote = remote?; let refs = RefsAt::new(&repo, remote)?; - let sigrefs = refs.load(&repo); + let sigrefs = SignedRefs::load_at(refs.at, remote, &repo); println!( "{:<48} {} {}", diff --git a/crates/radicle/src/storage/refs.rs b/crates/radicle/src/storage/refs.rs index 180c853b..e8d455ac 100644 --- a/crates/radicle/src/storage/refs.rs +++ b/crates/radicle/src/storage/refs.rs @@ -330,7 +330,8 @@ impl std::fmt::Display for FeatureLevel { /// The content-addressable information required to load a remote's /// `rad/sigrefs`. /// -/// Use [`RefsAt::load`] to produce [`SignedRefs`]. +/// Use [`RefsAt::remote`] and [`RefsAt::at`] with [`SignedRefs::load_at`] to +/// attempt loading the expected signed references. /// /// `RefsAt` can also be used for communicating announcements of updates /// references to other nodes. @@ -358,14 +359,6 @@ impl RefsAt { Ok(RefsAt { remote, at }) } - pub fn load(&self, repo: &R) -> Result, sigrefs::read::error::Read> - where - R: HasRepoId, - R: sigrefs::git::object::Reader + sigrefs::git::reference::Reader, - { - SignedRefs::load_at(self.at, self.remote, repo) - } - pub fn path(&self) -> &git::fmt::Qualified<'_> { &SIGREFS_BRANCH }