Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
Okm165 committed Jul 17, 2024
1 parent 62931bb commit 6db61cf
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions crates/delegator/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@ pub mod swarm;

use api::ServerState;
use axum::{
extract::DefaultBodyLimit, routing::{get, post}, Router
extract::DefaultBodyLimit,
routing::{get, post},
Router,
};
use clap::Parser;
use delegator::Delegator;
Expand Down Expand Up @@ -89,7 +91,7 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
// requests don't hang forever.
TimeoutLayer::new(Duration::from_secs(10)),
CorsLayer::new().allow_origin(Any).allow_methods(Any).allow_headers(Any),
DefaultBodyLimit::disable()
DefaultBodyLimit::disable(),
))
.with_state(ServerState {
signing_key: node_account.get_signing_key().to_owned(),
Expand Down
2 changes: 1 addition & 1 deletion crates/executor/src/executor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ impl Executor {
_ => {}
}
};
if flag == false {
if !flag {
let serialized_job = serde_json::to_string(&job)?;
picked_job_topic_tx.send(serialized_job.into()).await?;
info!("Sent picked job event: {}", hash!(&job));
Expand Down

0 comments on commit 6db61cf

Please sign in to comment.