mirror of
git://git.proxmox.com/git/proxmox-backup.git
synced 2024-12-22 13:34:16 +03:00
command socket: make create_control_socket private
this is internal for now, use the comanndo socket struct implementation, and ideally not a new one but the existing ones created in the proxy and api daemons. Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
a68768cf31
commit
b469011fd1
@ -11,7 +11,7 @@ use serde_json::Value;
|
|||||||
use nix::sys::socket;
|
use nix::sys::socket;
|
||||||
|
|
||||||
/// Listens on a Unix Socket to handle simple command asynchronously
|
/// Listens on a Unix Socket to handle simple command asynchronously
|
||||||
pub fn create_control_socket<P, F>(path: P, func: F) -> Result<impl Future<Output = ()>, Error>
|
fn create_control_socket<P, F>(path: P, func: F) -> Result<impl Future<Output = ()>, Error>
|
||||||
where
|
where
|
||||||
P: Into<PathBuf>,
|
P: Into<PathBuf>,
|
||||||
F: Fn(Value) -> Result<Value, Error> + Send + Sync + 'static,
|
F: Fn(Value) -> Result<Value, Error> + Send + Sync + 'static,
|
||||||
|
Loading…
Reference in New Issue
Block a user