mirror of
https://seed.radicle.dev/rad:z3gqcJUoA1n9HaHKufZs5FCSGazv5.git
synced 2026-11-21 18:40:39 +08:00
node: Add Disconnect command
This is useful especially in tests to disconnect two nodes. We also expose `command` on the handle type (but not the trait).
This commit is contained in:
@@ -114,7 +114,7 @@ impl Handle {
|
||||
self.controller.cmd(wire::Control::Flush { remote, stream })
|
||||
}
|
||||
|
||||
fn command(&self, cmd: service::Command) -> Result<(), io::Error> {
|
||||
pub(crate) fn command(&self, cmd: service::Command) -> Result<(), io::Error> {
|
||||
self.controller.cmd(wire::Control::User(cmd))
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user