Load world extensions from commit snapshots with last-good recovery
This commit is contained in:
@@ -61,6 +61,10 @@ impl World {
|
||||
Arc::new(std::sync::Mutex::new(Default::default()));
|
||||
let snapshot = processes.clone();
|
||||
let mut proc = Generated::default();
|
||||
let extensions = crate::harness::loader::status(&host_dir);
|
||||
proc.insert("/extensions", move || {
|
||||
Ok(extensions.lock().unwrap().as_bytes().to_vec())
|
||||
});
|
||||
proc.insert("/processes", move || {
|
||||
let mut text = String::from("PID\tPPID\tSTATE\tCWD\tCONVERSATION\tARGV\n");
|
||||
for (pid, info) in snapshot.lock().unwrap().iter() {
|
||||
|
||||
Reference in New Issue
Block a user