diff options
author | Lars Wirzenius <liw@liw.fi> | 2023-11-15 15:26:28 +0200 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2023-11-15 15:26:28 +0200 |
commit | 9d20ba820c6cf10d902ab54dd6e7a8b5f730eebd (patch) | |
tree | 22139abb29ecde9cc63cd7651d486d9276b2bb4d | |
parent | d81b026c01efda03c6803ffa7599c350c729a04c (diff) | |
download | native-ci-simulation-9d20ba820c6cf10d902ab54dd6e7a8b5f730eebd.tar.gz |
re-order uses
Signed-off-by: Lars Wirzenius <liw@liw.fi>
-rw-r--r-- | src/main.rs | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/main.rs b/src/main.rs index df149fe..6a7ccd9 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,6 +1,12 @@ // This is a simulation of Radicle native CI. It accepts a request to // run CI on a commit, via HTTP. +use std::{ + sync::{Arc, Mutex}, + thread::sleep, + time::Duration, +}; + use axum::{ extract::{self, State}, http::StatusCode, @@ -10,12 +16,6 @@ use axum::{ }; use serde::{Deserialize, Serialize}; -use std::{ - sync::{Arc, Mutex}, - thread::sleep, - time::Duration, -}; - const SUCCESS: &str = "http://127.0.0.1:9000/succeeded"; const FAIL: &str = "http://127.0.0.1:9000/failed"; |