Skip to content
This repository has been archived by the owner on Feb 8, 2024. It is now read-only.

carve out the limiters and sinks sub-modules #70

Merged
merged 4 commits into from
Dec 13, 2023
Merged

carve out the limiters and sinks sub-modules #70

merged 4 commits into from
Dec 13, 2023

Conversation

xvello
Copy link
Contributor

@xvello xvello commented Dec 12, 2023

The crate is starting to get crowded, let's start organizing the modules. No code changes except tuning the imports to match the new hierarchy.

There's touch-ups and cleanups I'd like to do next, but I'll keep this one short.

@xvello xvello marked this pull request as draft December 12, 2023 14:51
@xvello xvello changed the title carve out the sink and limits sub-modules carve out the limiters and sinks sub-modules Dec 12, 2023
@xvello xvello requested a review from ellie December 12, 2023 15:04
@xvello xvello marked this pull request as ready for review December 12, 2023 15:04
capture/src/capture.rs Outdated Show resolved Hide resolved
capture/src/capture.rs Outdated Show resolved Hide resolved
@@ -28,8 +28,8 @@ pub static DEFAULT_CONFIG: Lazy<Config> = Lazy::new(|| Config {
print_sink: false,
address: SocketAddr::from_str("127.0.0.1:0").unwrap(),
redis_url: "redis://localhost:6379/".to_string(),
burst_limit: NonZeroU32::new(5).unwrap(),
per_second_limit: NonZeroU32::new(10).unwrap(),
overflow_burst_limit: NonZeroU32::new(5).unwrap(),
Copy link
Contributor Author

Choose a reason for hiding this comment

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

These two are not defined in the chart, safe to rename now

@xvello xvello requested a review from ellie December 12, 2023 16:52
@xvello xvello merged commit 1a7e87a into main Dec 13, 2023
4 checks passed
@xvello xvello deleted the xvello/submods branch December 13, 2023 14:33
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants