Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add perf_event to cgroups v1 #166

Merged
merged 1 commit into from
Jul 28, 2021
Merged

add perf_event to cgroups v1 #166

merged 1 commit into from
Jul 28, 2021

Conversation

fbrv
Copy link

@fbrv fbrv commented Jul 28, 2021

No description provided.

src/cgroups/v1/perf_event.rs Outdated Show resolved Hide resolved
src/cgroups/v1/perf_event.rs Outdated Show resolved Hide resolved
use crate::cgroups::v1::Controller;
use oci_spec::{LinuxResources};
use std::path::Path;

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
use anyhow::Result;

@Furisto
Copy link
Collaborator

Furisto commented Jul 28, 2021

@fbrv Sorry for the confusion. With that suggestion I meant that you should add the use "above", not literally in the trait implementation.

@fbrv
Copy link
Author

fbrv commented Jul 28, 2021

@fbrv Sorry for the confusion. With that suggestion I meant that you should add the use "above", not literally in the trait implementation.

My fault, I haven't properly checked the suggestion, still learning rust :) hopefully in the next contributions will not happens anymore

@Furisto
Copy link
Collaborator

Furisto commented Jul 28, 2021

@fbrv You need to run cargo fmt, otherwise the check will not succeed.

@fbrv
Copy link
Author

fbrv commented Jul 28, 2021

@fbrv You need to run cargo fmt, otherwise the check will not succeed.

Run multiple times but for some reason it did not catch any error. Reinstalled rust and now seems working

@Furisto
Copy link
Collaborator

Furisto commented Jul 28, 2021

🎉

@Furisto Furisto merged commit 388dcaf into youki-dev:main Jul 28, 2021
@utam0k utam0k mentioned this pull request Jul 29, 2021
11 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants