State commit

This commit is contained in:
Nadja Reitzenstein 2022-02-14 17:38:48 +01:00
parent 03ff3fcf86
commit b543b3b80d
5 changed files with 19 additions and 3 deletions

View File

@ -1,6 +1,6 @@
[package]
name = "diflouroborane"
version = "0.4.0"
version = "0.4."
authors = [ "dequbed <me@dequbed.space>"
, "Kai Jan Kriegel <kai@kjkriegel.de>"
, "Joseph Langosch <thejoklla@gmail.com>"

@ -1 +1 @@
Subproject commit d5ffd3c2b36eecf250639d11c51045740504c2f0
Subproject commit 5b88b6446c55833a1c1340cd5b7fe9fcb992b872

View File

@ -11,3 +11,17 @@ passwd = "secret"
# You can add whatever random data you want.
# It will get stored in the `kv` field in UserData.
noot = "noot!"
[Differentuser]
# Define them in roles.toml as well
roles = ["somerole/internal", "testrole/internal"]
# If two or more users want to use the same machine at once the higher prio
# wins
priority = 0
passwd = "secret"
# You can add whatever random data you want.
# It will get stored in the `kv` field in UserData.
noot = "noot!"

View File

@ -31,6 +31,7 @@ pub mod load_balancer;
pub mod placement;
pub mod pool;
pub mod run;
pub mod manage;
mod thread_manager;
mod worker;

View File

@ -39,6 +39,7 @@ impl Spooler<'_> {
}
#[derive(Clone, Debug)]
/// Global executor
pub struct Executor<'a> {
spooler: Arc<Spooler<'a>>,
}
@ -220,4 +221,4 @@ fn schedule_local() -> impl Fn(LightProc) {
// We have to unpark the worker thread for our task to be run.
unparker.unpark();
}
}
}