Skip to content

Commit

Permalink
fix: compilation error
Browse files Browse the repository at this point in the history
  • Loading branch information
yuanchaoa committed Oct 10, 2024
1 parent 481d7e1 commit 00898ad
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions agent/src/ebpf_dispatcher.rs
Original file line number Diff line number Diff line change
Expand Up @@ -952,7 +952,7 @@ impl EbpfCollector {
.find(|f| f.eq_ignore_ascii_case(feature))
.is_some()
})
.map(|p| p.match_regex.to_owned())
.map(|p| p.match_regex.as_str())
.unwrap_or_default();
if !off_cpu.disabled {
process_listener.register(feature, ebpf::set_feature_off_cpu);
Expand Down Expand Up @@ -982,7 +982,7 @@ impl EbpfCollector {
.find(|f| f.eq_ignore_ascii_case("ebpf.profile.memory"))
.is_some()
})
.map(|p| p.match_regex.to_owned())
.map(|p| p.match_regex.as_str())
.unwrap_or_default();
ebpf::set_feature_regex(
ebpf::FEATURE_PROFILE_MEMORY,
Expand Down

0 comments on commit 00898ad

Please sign in to comment.