From 725954873df929d495a3a18d92c21aca421e8872 Mon Sep 17 00:00:00 2001 From: Tamir Duberstein Date: Fri, 4 Oct 2024 05:47:14 -0400 Subject: [PATCH] Fix build See https://github.com/aya-rs/aya/commit/f3b27440725a0eb2f1615c92cb0047. --- examples/cgroup-skb-egress/cgroup-skb-egress/src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/cgroup-skb-egress/cgroup-skb-egress/src/main.rs b/examples/cgroup-skb-egress/cgroup-skb-egress/src/main.rs index 93eb87f..e9eac50 100644 --- a/examples/cgroup-skb-egress/cgroup-skb-egress/src/main.rs +++ b/examples/cgroup-skb-egress/cgroup-skb-egress/src/main.rs @@ -61,7 +61,7 @@ async fn main() -> Result<(), anyhow::Error> { let mut perf_array = AsyncPerfEventArray::try_from(bpf.take_map("EVENTS").unwrap())?; - for cpu_id in online_cpus()? { + for cpu_id in online_cpus().map_err(|(_, error)| error)? { let mut buf = perf_array.open(cpu_id, None)?; task::spawn(async move {