mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-17 21:51:06 +00:00
PVF: Add back socket path parameter, use tmp socket path (#1780)
This commit is contained in:
@@ -111,6 +111,8 @@ fn send_response(stream: &mut UnixStream, response: Response) -> io::Result<()>
|
||||
///
|
||||
/// # Parameters
|
||||
///
|
||||
/// - `socket_path`: specifies the path to the socket used to communicate with the host.
|
||||
///
|
||||
/// - `worker_dir_path`: specifies the path to the worker-specific temporary directory.
|
||||
///
|
||||
/// - `node_version`: if `Some`, is checked against the `worker_version`. A mismatch results in
|
||||
@@ -121,6 +123,7 @@ fn send_response(stream: &mut UnixStream, response: Response) -> io::Result<()>
|
||||
///
|
||||
/// - `security_status`: contains the detected status of security features.
|
||||
pub fn worker_entrypoint(
|
||||
socket_path: PathBuf,
|
||||
worker_dir_path: PathBuf,
|
||||
node_version: Option<&str>,
|
||||
worker_version: Option<&str>,
|
||||
@@ -128,6 +131,7 @@ pub fn worker_entrypoint(
|
||||
) {
|
||||
worker_event_loop(
|
||||
WorkerKind::Execute,
|
||||
socket_path,
|
||||
worker_dir_path,
|
||||
node_version,
|
||||
worker_version,
|
||||
|
||||
Reference in New Issue
Block a user