Reattached document service.
This commit is contained in:
@ -42,4 +42,12 @@ impl MoreThanText {
|
||||
let reply = rx.recv().unwrap();
|
||||
reply.get_data("sess_id").unwrap().to_uuid().unwrap()
|
||||
}
|
||||
|
||||
pub fn get_document(&self, sess_id: Uuid) -> String {
|
||||
let mut msg = Message::new(MsgType::DocumentRequest);
|
||||
msg.add_data("sess_id", sess_id);
|
||||
let rx = self.client_channel.send(msg);
|
||||
let reply = rx.recv().unwrap();
|
||||
reply.get_data("doc").unwrap().to_string()
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user