mirror of
https://git.proxmox.com/git/proxmox
synced 2025-05-17 20:52:58 +00:00
avoid type re-exports
This commit is contained in:
parent
908d87f6cb
commit
c983a1d623
@ -6,7 +6,7 @@ use futures::*;
|
|||||||
|
|
||||||
use tokio::signal::unix::{signal, SignalKind};
|
use tokio::signal::unix::{signal, SignalKind};
|
||||||
|
|
||||||
use crate::tools::{self, BroadcastData};
|
use pbs_tools::broadcast_future::BroadcastData;
|
||||||
|
|
||||||
#[derive(PartialEq, Copy, Clone, Debug)]
|
#[derive(PartialEq, Copy, Clone, Debug)]
|
||||||
pub enum ServerMode {
|
pub enum ServerMode {
|
||||||
@ -42,7 +42,7 @@ pub fn server_state_init() -> Result<(), Error> {
|
|||||||
while stream.recv().await.is_some() {
|
while stream.recv().await.is_some() {
|
||||||
println!("got shutdown request (SIGINT)");
|
println!("got shutdown request (SIGINT)");
|
||||||
SERVER_STATE.lock().unwrap().reload_request = false;
|
SERVER_STATE.lock().unwrap().reload_request = false;
|
||||||
tools::request_shutdown();
|
crate::tools::request_shutdown();
|
||||||
}
|
}
|
||||||
}.boxed();
|
}.boxed();
|
||||||
|
|
||||||
@ -57,7 +57,7 @@ pub fn server_state_init() -> Result<(), Error> {
|
|||||||
while stream.recv().await.is_some() {
|
while stream.recv().await.is_some() {
|
||||||
println!("got reload request (SIGHUP)");
|
println!("got reload request (SIGHUP)");
|
||||||
SERVER_STATE.lock().unwrap().reload_request = true;
|
SERVER_STATE.lock().unwrap().reload_request = true;
|
||||||
tools::request_shutdown();
|
crate::tools::request_shutdown();
|
||||||
}
|
}
|
||||||
}.boxed();
|
}.boxed();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user