appmgr: basic tor sync

This commit is contained in:
Aiden McClelland
2021-06-23 17:59:22 -06:00
committed by Aiden McClelland
parent 5b22d0a3b3
commit 04b9ef8222
10 changed files with 610 additions and 753 deletions

View File

@@ -173,6 +173,11 @@ impl From<bollard::errors::Error> for Error {
Error::new(e, ErrorKind::Docker)
}
}
impl From<torut::control::ConnError> for Error {
fn from(e: torut::control::ConnError) -> Self {
Error::new(anyhow!("{:?}", e), ErrorKind::Tor)
}
}
impl From<Error> for RpcError {
fn from(e: Error) -> Self {
let mut data_object = serde_json::Map::with_capacity(2);