The routing function for Node was not implemented and there were no functions for getting any tracking information. This implements routing, tracked_repos, and tracked_nodes. To accomplish this it was necessary to add associated types to the Handler trait so that implementations could differ in the types they use for returning this data, i.e. the control socket needs to use a channel while the Node needs to return serializable data. Currently, the Node uses a `Vec` but it would be more beneficial to return an Iterator directly to ensure we are not always hitting the heap. To allow for the tracking types to be used across radicle-node (the crate) and in radicle::node (the module), it was necessary to move the types to the common place, i.e. radicle::node. At the same time, new structs were added to make it easier to refer to tracked repos vs tracked nodes. Signed-off-by: Fintan Halpenny <fintan.halpenny@gmail.com> X-Clacks-Overhead: GNU Terry Pratchett |
||
|---|---|---|
| .. | ||
| src | ||
| Cargo.toml | ||
| Dockerfile | ||