node: Add eventing system to `Handler` and `Service`
modified radicle-node/src/runtime.rs
@@ -3,6 +3,7 @@ mod handle;
|
|
|
|
|
|
| + | |
|
|
|
|
|
@@ -22,7 +23,7 @@ use crate::address;
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -61,6 +62,39 @@ pub enum Error {
|
|
|
|
|
|
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
@@ -113,6 +147,7 @@ impl<G: Signer + Ecdh + 'static> Runtime<G> {
|
|
|
|
|
|
| + | |
|
|
|
|
|
@@ -122,6 +157,7 @@ impl<G: Signer + Ecdh + 'static> Runtime<G> {
|
|
|
|
|
|
| + | |
|
|
|
|
|
@@ -138,7 +174,7 @@ impl<G: Signer + Ecdh + 'static> Runtime<G> {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
modified radicle-node/src/runtime/handle.rs
@@ -13,8 +13,10 @@ use crate::crypto::Signer;
|
|
|
|
|
|
| + | |
|
|
|
|
| + | |
|
|
|
|
|
@@ -64,6 +66,20 @@ pub struct Handle<G: Signer + Ecdh> {
|
|
|
|
|
|
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
@@ -78,16 +94,22 @@ impl<G: Signer + Ecdh> Clone for Handle<G> {
|
|
|
|
|
|
| + | |
|
|
|
|
|
|
|
|
|
|
| - | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
|
|
|
| + | |
|
|
|
|
|
modified radicle-node/src/service.rs
@@ -29,6 +29,7 @@ use crate::node;
|
|
|
|
|
|
| + | |
|
|
|
|
|
@@ -203,6 +204,8 @@ pub struct Service<R, A, S, G> {
|
|
|
|
|
|
| + | |
| + | |
|
|
|
|
|
@@ -236,6 +239,7 @@ where
|
|
|
|
|
|
| + | |
|
|
|
|
|
@@ -261,6 +265,7 @@ where
|
|
|
|
|
|
| + | |
|
|
|
|
|
@@ -341,6 +346,11 @@ where
|
|
|
|
|
|
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
@@ -586,11 +596,12 @@ where
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
|
|
|
| + | |
|
|
|
|
|
modified radicle-node/src/service/reactor.rs
@@ -22,8 +22,6 @@ pub enum Io {
|
|
|
|
|
|
| - | |
| - | |
|
|
|
|
|
@@ -81,11 +79,6 @@ pub struct Reactor {
|
|
|
|
|
|
| - | |
| - | |
| - | |
| - | |
| - | |
|
|
|
|
|
modified radicle-node/src/test/peer.rs
@@ -3,6 +3,7 @@ use std::iter;
|
|
|
|
|
|
| + | |
|
|
|
|
|
@@ -13,6 +14,7 @@ use crate::identity::Id;
|
|
|
|
|
|
| + | |
|
|
|
|
|
@@ -130,6 +132,8 @@ where
|
|
|
|
|
|
| + | |
| + | |
|
|
|
|
|
@@ -139,6 +143,7 @@ where
|
|
|
|
|
|
| + | |
|
|
|
|
|
@@ -320,10 +325,9 @@ where
|
|
|
|
|
|
| - | |
| - | |
| - | |
| - | |
| + | |
| + | |
| + | |
|
|
|
|
|
modified radicle-node/src/test/simulator.rs
@@ -606,14 +606,6 @@ impl<S: WriteStorage + 'static, G: Signer> Simulation<S, G> {
|
|
|
|
|
|
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
|
|
|
|
|
modified radicle-node/src/tests.rs
@@ -1069,6 +1069,8 @@ fn test_push_and_pull() {
|
|
|
|
|
|
| + | |
| + | |
|
|
|
|
|
@@ -1098,8 +1100,8 @@ fn test_push_and_pull() {
|
|
|
|
|
|
| - | |
| - | |
| + | |
| + | |
|
|
|
|
|
modified radicle-node/src/wire/protocol.rs
@@ -703,11 +703,6 @@ where
|
|
|
|
|
|
| - | |
| - | |
| - | |
| - | |
| - | |
|
|
|
|
|