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: remove unneeded usage of pub throughout gateway code #4357

Merged
merged 1 commit into from
Feb 27, 2024

Conversation

tvolk131
Copy link
Contributor

No description provided.

@tvolk131 tvolk131 marked this pull request as ready for review February 18, 2024 18:43
@tvolk131 tvolk131 requested a review from a team as a code owner February 18, 2024 18:43
@tvolk131 tvolk131 changed the title chore: remove usage of pub throughout gateway code chore: remove usage of pub throughout gateway code Feb 18, 2024
@tvolk131 tvolk131 changed the title chore: remove usage of pub throughout gateway code chore: remove unneeded usage of pub throughout gateway code Feb 18, 2024
elsirion
elsirion previously approved these changes Feb 20, 2024
Copy link
Contributor

@elsirion elsirion left a comment

Choose a reason for hiding this comment

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

I think in this case it's ok to reduce visibility, but @douglaz made a good point yesterday that making things pub again when needed is a lengthy process. So maybe for now we only want to make things private where it's necessary for guaranteeing invariants.

@@ -1165,7 +1165,7 @@ impl Gateway {
/// - `GatewayConfiguration` is read from the database.
/// - All cli or environment variables are set such that we can create a
/// `GatewayConfiguration`
pub async fn get_gateway_configuration(&self) -> Option<GatewayConfiguration> {
async fn get_gateway_configuration(&self) -> Option<GatewayConfiguration> {
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this something you might want to call if you instantiate the gateway yourself as part of a custom binary?

Copy link
Contributor

Choose a reason for hiding this comment

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

I'd say yes, but right now I don't see us supporting custom binaries for gateways

@@ -240,7 +239,7 @@ impl ClientModule for GatewayClientModule {
}

impl GatewayClientModule {
pub fn to_gateway_registration_info(
fn to_gateway_registration_info(
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe useful for integrators

@elsirion
Copy link
Contributor

@douglaz do you think this PR is worth it? If so it needs a rebase.

@tvolk131
Copy link
Contributor Author

Rebased!

Copy link
Contributor

@m1sterc001guy m1sterc001guy left a comment

Choose a reason for hiding this comment

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

Send it

@m1sterc001guy m1sterc001guy added this pull request to the merge queue Feb 27, 2024
Merged via the queue into fedimint:master with commit 6b7ab06 Feb 27, 2024
20 checks passed
@tvolk131 tvolk131 deleted the remove_pub branch February 28, 2024 02:19
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