Skip to content

Commit 163c820

Browse files
committed
fix(reload): move imports
1 parent 4381796 commit 163c820

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/topology/controller.rs

+5-3
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
11
use std::sync::Arc;
22

3-
use crate::internal_events::ApiStarted;
43
#[cfg(feature = "enterprise")]
54
use futures_util::future::BoxFuture;
65
use futures_util::FutureExt as _;
7-
use tokio::runtime::Handle;
86

97
use tokio::sync::{Mutex, MutexGuard};
108

@@ -18,7 +16,6 @@ use crate::internal_events::{
1816
VectorConfigLoadError, VectorRecoveryError, VectorReloadError, VectorReloaded,
1917
};
2018

21-
use crate::topology::ReloadOutcome::FatalError;
2219
use crate::{config, topology::RunningTopology};
2320

2421
#[derive(Clone, Debug)]
@@ -106,8 +103,13 @@ impl TopologyController {
106103
drop(server)
107104
}
108105
} else if self.api_server.is_none() {
106+
use crate::internal_events::ApiStarted;
107+
use crate::topology::ReloadOutcome::FatalError;
109108
use std::sync::atomic::AtomicBool;
109+
use tokio::runtime::Handle;
110+
110111
debug!("Starting api server.");
112+
111113
self.api_server = match api::Server::start(
112114
self.topology.config(),
113115
self.topology.watch(),

0 commit comments

Comments
 (0)