mirror of
https://seed.radicle.dev/rad:z3gqcJUoA1n9HaHKufZs5FCSGazv5.git
synced 2026-11-16 08:10:40 +08:00
node: Start working on git-fetch
Signed-off-by: Alexis Sellier <self@cloudhead.io>
This commit is contained in:
@@ -57,7 +57,7 @@ impl<S> DerefMut for Peer<S> {
|
||||
|
||||
impl<S> Peer<S>
|
||||
where
|
||||
S: ReadStorage + WriteStorage,
|
||||
S: ReadStorage + WriteStorage + 'static,
|
||||
{
|
||||
pub fn new(name: &'static str, ip: impl Into<net::IpAddr>, storage: S) -> Self {
|
||||
Self::config(
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
use std::net;
|
||||
|
||||
use crate::identity::ProjId;
|
||||
use crate::storage::{Error, Inventory, ReadStorage, Remotes, Unverified, WriteStorage};
|
||||
|
||||
@@ -40,7 +38,7 @@ impl ReadStorage for MockStorage {
|
||||
}
|
||||
|
||||
impl WriteStorage for MockStorage {
|
||||
fn fetch(&mut self, _proj: &ProjId, _remote: &net::SocketAddr) -> Result<(), Error> {
|
||||
fn repository(&mut self) -> &mut git2::Repository {
|
||||
todo!()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user