diff --git a/partition/src/lib.rs b/partition/src/lib.rs index 4076f9b..7cfe6b4 100644 --- a/partition/src/lib.rs +++ b/partition/src/lib.rs @@ -64,7 +64,7 @@ pub(crate) static PERIODIC_PROCESS: Lazy>> = Lazy::new( }); pub(crate) type SamplingPortsType = (usize, Duration); -pub(crate) static SAMPLING_PORTS: Lazy>> = +pub(crate) static SAMPLING_PORTS: Lazy>> = Lazy::new(|| { if let Ok(fd) = get_memfd(SAMPLING_PORTS_FILE) { TempFile::try_from(fd).unwrap()