Skip to content

Conversation

@bkeepers
Copy link
Collaborator

This adds the ActorLimit adapter and configures it to be used by default.

101.times { |i| Flipper.enable :some_feature Flipper::Actor.new(i) }
# Error: Actor limit of 100 exceeded for feature some_feature

100 has been our recommended max for individual actors for a while, so I started with that default. It can easily be configured with:

Rails.application.configure do |config|
  config.flipper.actor_limit = 1000
  
  # or disable
  config.flipper.actor_limit = false
end

@bkeepers bkeepers requested a review from jnunemaker February 18, 2024 16:23
Copy link
Collaborator

@jnunemaker jnunemaker left a comment

Choose a reason for hiding this comment

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

Awesome!

ref #837

Base automatically changed from chance-the-wrapper to main February 18, 2024 20:01
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.

3 participants