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

Allow to configure buffer_max_items for Connectable devices using URI #148

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

neerfri
Copy link

@neerfri neerfri commented Sep 18, 2018

We are using URI in an environment variable in order to configure our LogstashLogger:

# Read the URI from an environment variable
logger = LogStashLogger.new(uri: ENV['LOGSTASH_URI'])

The default value for buffer_max_items was not enough for our production needs and currently cannot be controlled using the :uri option.

This PR adds support specifically for buffer_max_items but opens the door to type-specific options to be parsed / validated by individual device implementations.

@neerfri
Copy link
Author

neerfri commented Sep 18, 2018

@dwbutler I have no idea what is causing the error for codeclimate. Your help will be appreciated.

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.

1 participant