Skip to content

Commit

Permalink
Fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
tamird committed Oct 4, 2024
1 parent 4309094 commit 40880e7
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 40880e7

Please sign in to comment.