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

Issue 64 take2 #93

Merged
merged 4 commits into from
Jul 28, 2022
Merged

Issue 64 take2 #93

merged 4 commits into from
Jul 28, 2022

Conversation

alexsnaps
Copy link
Member

Closes #64 for real?

@alexsnaps alexsnaps added this to the Limitador v0.3 milestone Jul 20, 2022
@alexsnaps alexsnaps requested a review from eguzki July 20, 2022 09:32
@@ -26,8 +26,10 @@ impl From<String> for Namespace {
#[derive(Eq, Debug, Clone, Serialize, Deserialize)]
pub struct Limit {
namespace: Namespace,
#[serde(skip_serializing)]
Copy link
Member Author

Choose a reason for hiding this comment

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

Not sure why I changed that in the first PR, but this still needs to read these values when reading the LIMITS_FILE obviously… otherwise all limits are 0 🤦‍♂️

Copy link
Contributor

@eguzki eguzki left a comment

Choose a reason for hiding this comment

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

Just heads up about a breaking change here.

Using your own words, the key used to lookup a counter has changed, meaning that upgrading you'd loose your counters as of today.

@alexsnaps alexsnaps merged commit c15e1d5 into main Jul 28, 2022
@alexsnaps alexsnaps deleted the issue_64_take2 branch July 28, 2022 12:58
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.

Duplicate limits with same namespace, conditions and variables are allowed
2 participants