Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.

Commit 18e66e5

Browse files
committed
service: fix wasm compilation
1 parent 79d3d05 commit 18e66e5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

client/service/src/metrics.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -383,9 +383,9 @@ mod sysinfo {
383383
}
384384
}
385385

386-
#[cfg(any(target_os = "android", target_os = "ios"))]
386+
#[cfg(not(all(any(unix, windows), not(target_os = "android"), not(target_os = "ios"))))]
387387
mod noop {
388-
use super::ProcessInfo;
388+
use super::{LoadAverage, ProcessInfo};
389389

390390
pub(crate) struct System;
391391

@@ -413,7 +413,7 @@ type System = linux::System;
413413
not(target_os = "linux")
414414
))]
415415
type System = sysinfo::System;
416-
#[cfg(any(target_os = "android", target_os = "ios"))]
416+
#[cfg(not(all(any(unix, windows), not(target_os = "android"), not(target_os = "ios"))))]
417417
type System = noop::System;
418418

419419
pub struct MetricsService {

0 commit comments

Comments
 (0)