node: Start working on git-fetch

Signed-off-by: Alexis Sellier <self@cloudhead.io>
This commit is contained in:
Alexis Sellier
2022-09-13 10:16:04 +02:00
parent 15eed71588
commit 38f4bb52d8
6 changed files with 40 additions and 13 deletions
+1 -1
View File
@@ -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 -3
View File
@@ -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!()
}
}