Skip to content

Commit

Permalink
cargo fix & format
Browse files Browse the repository at this point in the history
  • Loading branch information
vertexclique committed Oct 30, 2019
1 parent cc4fbbb commit 1590cd3
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 9 deletions.
4 changes: 2 additions & 2 deletions bastion-executor/src/distributor.rs
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
use super::placement;
use super::placement::CoreId;
use super::run_queue::{Stealer, Worker};
use super::worker;

use lightproc::prelude::*;
use std::sync::Arc;

use std::thread;

pub(crate) struct Distributor {
Expand Down
7 changes: 2 additions & 5 deletions bastion-executor/src/load_balancer.rs
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
use super::placement;
use super::pool;
use super::run_queue::{Stealer, Worker};
use super::run_queue::Worker;
use lazy_static::*;
use lightproc::lightproc::LightProc;
use std::collections::VecDeque;
use std::sync::atomic::AtomicUsize;
use std::sync::Arc;

use std::{thread, time};

const SIXTY_MILLIS: time::Duration = time::Duration::from_millis(60);
Expand Down
3 changes: 1 addition & 2 deletions bastion-executor/src/pool.rs
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
use super::distributor::Distributor;
use super::load_balancer;

use super::load_balancer::LoadBalancer;
use super::run_queue::{Injector, Stealer, Worker};
use super::sleepers::Sleepers;
use super::worker;
use lazy_static::*;
use lightproc::prelude::*;
use std::future::Future;
use std::sync::Arc;

pub fn spawn<F, T>(future: F, stack: ProcStack) -> RecoverableHandle<T>
where
Expand Down

0 comments on commit 1590cd3

Please sign in to comment.