From b469011fd11c209ce7ba8c06c77d597adfcdf7bf Mon Sep 17 00:00:00 2001 From: Thomas Lamprecht Date: Mon, 2 Nov 2020 19:23:18 +0100 Subject: [PATCH] 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 --- src/server/command_socket.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/server/command_socket.rs b/src/server/command_socket.rs index 7ef6b88f..08e59173 100644 --- a/src/server/command_socket.rs +++ b/src/server/command_socket.rs @@ -11,7 +11,7 @@ use serde_json::Value; use nix::sys::socket; /// Listens on a Unix Socket to handle simple command asynchronously -pub fn create_control_socket(path: P, func: F) -> Result, Error> +fn create_control_socket(path: P, func: F) -> Result, Error> where P: Into, F: Fn(Value) -> Result + Send + Sync + 'static,