aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--worker/src/main.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/worker/src/main.rs b/worker/src/main.rs
index 0300278..a014914 100644
--- a/worker/src/main.rs
+++ b/worker/src/main.rs
@@ -65,10 +65,11 @@ fn main() -> io::Result<()> {
let path = tempdir.path().join("core.so");
let res =
- File::open(&path)
+ File::create(&path)
.and_then(|mut f| { f.write_all(&libfile)?; Ok(f) })
.and_then(|f| {
drop(f);
+ println!("Wrote new core to {}, loading", path.display());
ComputeCore::load(&path)
});