RbxSession refactoring stuff

This commit is contained in:
Lucien Greathouse
2018-11-16 23:14:32 -08:00
parent 9ad0eabb85
commit e09d23d6c2
5 changed files with 242 additions and 139 deletions

View File

@@ -63,7 +63,8 @@ impl Server {
(GET) (/api/rojo) => {
// Get a summary of information about the server.
let tree = self.session.tree.read().unwrap();
let rbx_session = self.session.rbx_session.lock().unwrap();
let tree = rbx_session.get_tree();
Response::json(&ServerInfoResponse {
server_version: self.server_version,
@@ -127,7 +128,8 @@ impl Server {
None => return rouille::Response::text("Malformed ID list").with_status_code(400),
};
let tree = self.session.tree.read().unwrap();
let rbx_session = self.session.rbx_session.lock().unwrap();
let tree = rbx_session.get_tree();
let message_cursor = message_queue.get_message_cursor();