Skip to content

Commit

Permalink
arbiter toml and clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
0xJepsen committed Nov 12, 2023
1 parent 6903634 commit ccaeb3d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
2 changes: 2 additions & 0 deletions arbiter.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
bindings_workspace = "simulation" # must be a valid workspace member
submodules = false # change to true if you want the submodule bindings to be generated
11 changes: 3 additions & 8 deletions src/simulations/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,7 @@
use arbiter_core::environment::Environment;
use serde::{Deserialize, Serialize};
use std::sync::Arc;
use tokio::sync::Semaphore;

use super::*;
use crate::agents::Agents;

pub mod counter;
Expand Down Expand Up @@ -84,12 +82,9 @@ pub fn batch(config_paths: Vec<String>) -> Result<()> {
let errors_clone = errors.clone();
handles.push(tokio::spawn(async move {
let result = SimulationType::run(config).await;
match result {
Err(e) => {
let mut errors_clone_lock = errors_clone.lock().await;
errors_clone_lock.push(e);
}
Result::Ok(_) => {}
if let Err(e) = result {
let mut errors_clone_lock = errors_clone.lock().await;
errors_clone_lock.push(e);
}
}));
}
Expand Down

0 comments on commit ccaeb3d

Please sign in to comment.