add report_err() fn
This commit is contained in:
@@ -385,6 +385,10 @@ impl Instance {
|
|||||||
Ok(self.op_tx.send(Operation::Msg(msg))?)
|
Ok(self.op_tx.send(Operation::Msg(msg))?)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
pub fn report_err(&self, err: MizeError) {
|
||||||
|
err.log();
|
||||||
|
}
|
||||||
|
|
||||||
fn set_connection(&self, conn_id: u64, new_connection: Connection) -> MizeResult<()> {
|
fn set_connection(&self, conn_id: u64, new_connection: Connection) -> MizeResult<()> {
|
||||||
let mut conn_inner = self.connections.lock()?;
|
let mut conn_inner = self.connections.lock()?;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user