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

Refactor to remove netns. #3

Merged
merged 2 commits into from Apr 25, 2022
Merged

Refactor to remove netns. #3

merged 2 commits into from Apr 25, 2022

Conversation

wllenyj
Copy link
Contributor

@wllenyj wllenyj commented Apr 2, 2022

When netns is deleted, the NetNs instance will no longer be available
and we should use the self argument in the remove function in order
to consume the NetNs instance.

Signed-off-by: wllenyj wllenyj@linux.alibaba.com

@wllenyj wllenyj requested a review from jiangliu as a code owner April 2, 2022 09:15
When netns is deleted, the NetNs instance will no longer be available
and we should use the `self` argument in the remove function in order
to consume the NetNs instance.

Signed-off-by: wllenyj <wllenyj@linux.alibaba.com>
Signed-off-by: wllenyj <wllenyj@linux.alibaba.com>
@codecov
Copy link

codecov bot commented Apr 2, 2022

Codecov Report

Merging #3 (7687611) into main (2a6ad23) will increase coverage by 0.60%.
The diff coverage is 96.42%.

@@            Coverage Diff             @@
##             main       #3      +/-   ##
==========================================
+ Coverage   82.22%   82.82%   +0.60%     
==========================================
  Files           2        2              
  Lines         270      262       -8     
==========================================
- Hits          222      217       -5     
+ Misses         48       45       -3     
Impacted Files Coverage Δ
src/lib.rs 5.00% <ø> (+0.45%) ⬆️
src/netns.rs 89.25% <96.42%> (+0.14%) ⬆️

📣 Codecov can now indicate which changes are the most critical in Pull Requests. Learn more

@wllenyj wllenyj merged commit 8439333 into openanolis:main Apr 25, 2022
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.

None yet

1 participant