Radish alpha
h
Radicle Heartwood Protocol & Stack
Radicle
Git (anonymous pull)
Log in to clone via SSH
node: Relax `Service` storage trait bound
Alexis Sellier committed 3 years ago
commit bfea229850a382dc2f9670b59c9aa8825c87f4f2
parent 577a232a687bd826a0fdd4aeecef7ef10ac328aa
1 file changed +2 -2
modified radicle-node/src/service.rs
@@ -37,7 +37,7 @@ use crate::service::session::GossipState;
use crate::service::tracking::Scope;
use crate::storage;
use crate::storage::{Namespaces, ReadStorage};
-
use crate::storage::{ReadRepository, RefUpdate, WriteStorage};
+
use crate::storage::{ReadRepository, RefUpdate};
use crate::worker::FetchError;
use crate::Link;

@@ -223,7 +223,7 @@ impl<R, A, S, G> Service<R, A, S, G>
where
    R: routing::Store,
    A: address::Store,
-
    S: WriteStorage + 'static,
+
    S: ReadStorage + 'static,
    G: Signer,
{
    pub fn new(