Skip to content

Commit

Permalink
Make firehose buffer size configurable
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewhampton committed Dec 3, 2020
1 parent 3d7b0e7 commit 24e0449
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/firehose/server/message_buffer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ module Server
class MessageBuffer
# Number of messages that Redis buffers for the client if its
# connection drops, then reconnects.
DEFAULT_SIZE = 100
DEFAULT_SIZE = ENV.fetch("DEFAULT_BUFFER_SIZE", 100)

def initialize(message_list, channel_sequence, consumer_sequence = nil)
@message_list = message_list
Expand Down

0 comments on commit 24e0449

Please sign in to comment.