mirror of
https://seed.radicle.dev/rad:z3gqcJUoA1n9HaHKufZs5FCSGazv5.git
synced 2026-11-16 00:00:37 +08:00
node: Rename "user"
In some cases to "public key" and in other cases to "remote". Signed-off-by: Alexis Sellier <self@cloudhead.io>
This commit is contained in:
@@ -19,7 +19,7 @@ pub fn storage<P: AsRef<Path>>(path: P) -> Storage {
|
||||
crate::test::logger::init(log::Level::Debug);
|
||||
|
||||
for storage in &storages {
|
||||
let remote = storage.user_id();
|
||||
let remote = storage.public_key();
|
||||
|
||||
log::debug!("signer {}...", remote);
|
||||
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
use git_url::Url;
|
||||
|
||||
use crate::crypto::Verified;
|
||||
use crate::crypto::{PublicKey, Verified};
|
||||
use crate::git;
|
||||
use crate::identity::{ProjId, Project, UserId};
|
||||
use crate::identity::{ProjId, Project};
|
||||
use crate::storage::refs;
|
||||
use crate::storage::{
|
||||
Error, Inventory, ReadRepository, ReadStorage, Remote, RemoteId, WriteRepository, WriteStorage,
|
||||
@@ -26,7 +26,7 @@ impl MockStorage {
|
||||
}
|
||||
|
||||
impl ReadStorage for MockStorage {
|
||||
fn user_id(&self) -> &UserId {
|
||||
fn public_key(&self) -> &PublicKey {
|
||||
todo!()
|
||||
}
|
||||
|
||||
@@ -84,7 +84,7 @@ impl ReadRepository<'_> for MockRepository {
|
||||
todo!()
|
||||
}
|
||||
|
||||
fn remote(&self, _user: &UserId) -> Result<Remote<Verified>, refs::Error> {
|
||||
fn remote(&self, _remote: &RemoteId) -> Result<Remote<Verified>, refs::Error> {
|
||||
todo!()
|
||||
}
|
||||
|
||||
@@ -102,7 +102,7 @@ impl ReadRepository<'_> for MockRepository {
|
||||
|
||||
fn reference(
|
||||
&self,
|
||||
_user: &UserId,
|
||||
_remote: &RemoteId,
|
||||
_reference: &git::RefStr,
|
||||
) -> Result<Option<git2::Reference>, git2::Error> {
|
||||
todo!()
|
||||
@@ -110,13 +110,13 @@ impl ReadRepository<'_> for MockRepository {
|
||||
|
||||
fn reference_oid(
|
||||
&self,
|
||||
_user: &UserId,
|
||||
_remote: &RemoteId,
|
||||
_reference: &git::RefStr,
|
||||
) -> Result<Option<radicle_git_ext::Oid>, git2::Error> {
|
||||
todo!()
|
||||
}
|
||||
|
||||
fn references(&self, _user: &UserId) -> Result<crate::storage::refs::Refs, Error> {
|
||||
fn references(&self, _remote: &RemoteId) -> Result<crate::storage::refs::Refs, Error> {
|
||||
todo!()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user