Sans IO dispatch

This commit is contained in:
Aleksey Kladov 2018-08-12 22:12:51 +03:00
parent 1962369806
commit b518fd0ef9
2 changed files with 4 additions and 11 deletions

View file

@ -102,7 +102,7 @@ fn on_msg(
}
if let Some(req) = req {
error!("unknown method: {:?}", req);
dispatch::unknown_method(io, req)?;
io.send(RawMsg::Response(dispatch::unknown_method(req.id)?));
}
}
RawMsg::Notification(not) => {