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

Setup blocklist client template #102

Merged
merged 6 commits into from
May 6, 2024
Merged

Setup blocklist client template #102

merged 6 commits into from
May 6, 2024

Conversation

8marz8
Copy link
Contributor

@8marz8 8marz8 commented May 1, 2024

Description

Basic setup for blocklist client using warp framework.

Closes #76

Testing information

Verified the local server but the exposed route is not integrated with a provider yet so testing will be done in subsequent commits.

@8marz8 8marz8 requested review from djordon and netrome May 1, 2024 20:45
Copy link
Contributor

@djordon djordon left a comment

Choose a reason for hiding this comment

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

Some minor comments and one major comment.

blocklist-client/src/client/mod.rs Outdated Show resolved Hide resolved
blocklist-client/Cargo.toml Show resolved Hide resolved
blocklist-client/Cargo.toml Outdated Show resolved Hide resolved
@netrome
Copy link
Contributor

netrome commented May 2, 2024

I assume this closes #76, I'll link this issue with the PR.

For future PRs, I recommend creating the branch from the issue itself because then you'll get both a canonical branch name and automatic linking once you open up a PR.

image

@netrome netrome linked an issue May 2, 2024 that may be closed by this pull request
Copy link
Contributor

@netrome netrome left a comment

Choose a reason for hiding this comment

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

Nice stuff. I'd like to see the logging library updated and tokio-serde removed (or explained why we'd keep it around) before seeing this merged.

blocklist-client/Cargo.toml Outdated Show resolved Hide resolved
blocklist-client/Cargo.toml Outdated Show resolved Hide resolved
blocklist-client/src/client/client.rs Outdated Show resolved Hide resolved
blocklist-client/src/api/routes.rs Show resolved Hide resolved
@8marz8 8marz8 requested review from djordon and netrome May 2, 2024 20:09
Copy link
Contributor

@netrome netrome left a comment

Choose a reason for hiding this comment

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

Just a minor nit.

blocklist-client/src/api/handlers.rs Show resolved Hide resolved
Comment on lines +1 to +2
use crate::config::Settings;
use ::config::{Config, File};
Copy link
Contributor

Choose a reason for hiding this comment

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

Isn't these both the same import? I think we should be explicit and go with crate::config for both, and avoid relative imports.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

First one is for the config.rs at root level. Second one is from a lib.
That's what the auto-import gives and for some reason it's not happy when I don't use :: for the second one.

@8marz8 8marz8 marked this pull request as ready for review May 3, 2024 15:23
Copy link
Contributor

@djordon djordon left a comment

Choose a reason for hiding this comment

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

Looks good!

@8marz8 8marz8 merged commit ef1bd88 into main May 6, 2024
2 checks passed
@8marz8 8marz8 deleted the blocklist-client-template branch May 7, 2024 08:53
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.

Dynamic Blocklist Template
4 participants