Skip to content

Commit

Permalink
fix accidental import separations
Browse files Browse the repository at this point in the history
  • Loading branch information
paulgb committed Dec 3, 2024
1 parent a33face commit 164567a
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 12 deletions.
3 changes: 1 addition & 2 deletions plane/src/controller/core.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
use crate::database::{connect::ConnectError, PlaneDatabase};
use chrono::{DateTime, Utc};
use plane_common::{
names::{AnyNodeName, ControllerName},
Expand All @@ -8,8 +9,6 @@ use plane_common::{
use std::net::IpAddr;
use url::Url;

use crate::database::{connect::ConnectError, PlaneDatabase};

#[derive(Clone)]
pub struct Controller {
pub db: PlaneDatabase,
Expand Down
3 changes: 1 addition & 2 deletions plane/src/drone/command.rs
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
use crate::util::resolve_hostname;

use super::{
runtime::{docker::DockerRuntimeConfig, unix_socket::UnixSocketRuntimeConfig},
DroneConfig, ExecutorConfig,
};
use crate::util::resolve_hostname;
use anyhow::Result;
use chrono::Duration;
use clap::Parser;
Expand Down
3 changes: 1 addition & 2 deletions plane/src/drone/executor.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
use crate::util::GuardHandle;

use super::{backend_manager::BackendManager, runtime::Runtime, state_store::StateStore};
use crate::util::GuardHandle;
use anyhow::Result;
use chrono::Utc;
use dashmap::DashMap;
Expand Down
3 changes: 1 addition & 2 deletions plane/src/drone/key_manager.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
use crate::util::GuardHandle;

use super::executor::Executor;
use crate::util::GuardHandle;
use chrono::Utc;
use plane_common::{
log_types::LoggableTime,
Expand Down
3 changes: 1 addition & 2 deletions plane/src/drone/mod.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
use crate::signals::wait_for_shutdown_signal;

use self::{
executor::Executor,
heartbeat::HeartbeatLoop,
Expand All @@ -11,6 +9,7 @@ use self::{
},
state_store::StateStore,
};
use crate::signals::wait_for_shutdown_signal;
use anyhow::{anyhow, Result};
use chrono::{Duration, Utc};
use plane_common::{
Expand Down
3 changes: 1 addition & 2 deletions plane/src/proxy/connection_monitor.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
use crate::heartbeat_consts::HEARTBEAT_INTERVAL;
use plane_common::names::BackendName;
use std::{
collections::{hash_map::Entry, HashMap, VecDeque},
Expand All @@ -6,8 +7,6 @@ use std::{
};
use tokio::task::JoinHandle;

use crate::heartbeat_consts::HEARTBEAT_INTERVAL;

type BackendNameListener = Box<dyn Fn(&BackendName) + Send + Sync + 'static>;

#[derive(Debug, Clone)]
Expand Down

0 comments on commit 164567a

Please sign in to comment.