nucleus-js / rustyduk

An implementation of nucleus-js using duktape and libuv implemented in rust
Other
25 stars 1 forks source link

Use Mutex for non-boolean static-s in resource.rs #13

Open Fishrock123 opened 8 years ago

Fishrock123 commented 8 years ago

static mut base_path: &'static str = "/"; would probably be better off as a thread-safe Mutex.

Also, it should be possible to use a Mutex to cache the zip reader and file for zipped bundles.