Skip to content

Commit

Permalink
Merge pull request #170 from aya-rs/fix-build
Browse files Browse the repository at this point in the history
Fix build
  • Loading branch information
tamird authored Oct 4, 2024
2 parents 4309094 + 7259548 commit e07f82c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/cgroup-skb-egress/cgroup-skb-egress/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit e07f82c

Please sign in to comment.