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

chore: improve devimint api #4237

Merged
merged 2 commits into from
Feb 5, 2024
Merged

Conversation

maan2003
Copy link
Member

@maan2003 maan2003 commented Feb 5, 2024

No description provided.

@maan2003 maan2003 requested a review from a team as a code owner February 5, 2024 06:27
@maan2003 maan2003 requested a review from dpc February 5, 2024 06:28
Copy link

codecov bot commented Feb 5, 2024

Codecov Report

Attention: 5 lines in your changes are missing coverage. Please review.

Comparison is base (7406d67) 57.87% compared to head (6f1176e) 57.87%.
Report is 4 commits behind head on master.

Files Patch % Lines
devimint/src/federation.rs 0.00% 2 Missing ⚠️
devimint/src/cli.rs 0.00% 1 Missing ⚠️
devimint/src/devfed.rs 0.00% 1 Missing ⚠️
devimint/src/vars.rs 0.00% 1 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##           master    #4237   +/-   ##
=======================================
  Coverage   57.87%   57.87%           
=======================================
  Files         197      197           
  Lines       43416    43420    +4     
=======================================
+ Hits        25126    25129    +3     
- Misses      18290    18291    +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@@ -32,17 +32,19 @@ use super::vars::utf8;
use crate::util::{poll, FedimintdCmd};
use crate::{poll_eq, vars};

#[derive(Clone)]
pub struct Federation {
Copy link
Contributor

Choose a reason for hiding this comment

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

Does it make sense to clone this? Isn't it more like a ... resource?

Copy link
Member Author

Choose a reason for hiding this comment

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

all daemon structs are clone in devimint

Copy link
Contributor

Choose a reason for hiding this comment

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

We don't do things like "kill on Drop" etc. on them?

Copy link
Member Author

@maan2003 maan2003 Feb 5, 2024

Choose a reason for hiding this comment

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

that happens in ProcessHandle, which is Arc<ProcessHandleInner>

@maan2003 maan2003 added this pull request to the merge queue Feb 5, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Feb 5, 2024
@maan2003 maan2003 added this pull request to the merge queue Feb 5, 2024
Merged via the queue into fedimint:master with commit 4c46481 Feb 5, 2024
22 checks passed
@maan2003 maan2003 deleted the devimint-cleanup branch February 5, 2024 10:47
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

3 participants