Skip to content

Commit f48b640

Browse files
committed
remove concurrent map and use a Hash
It seems it doesn't need to be threadsafe. Via zendesk#835 (comment)
1 parent 6ccbb0f commit f48b640

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/kafka/consumer.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ def initialize(cluster:, logger:, instrumenter:, group:, fetcher:, offset_manage
7979
@current_offsets = Hash.new { |h, k| h[k] = {} }
8080

8181
# Map storing subscribed topics with their configuration
82-
@subscribed_topics = Concurrent::Map.new
82+
@subscribed_topics = Hash.new
8383

8484
# Set storing topics that matched topics in @subscribed_topics
8585
@matched_topics = Set.new

0 commit comments

Comments
 (0)