You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In my case I solved adding concurrent-ruby as dependency and then require 'concurrent/map' on my lib file.
I suspect this is caused because ActiveSupport install ruby-concurrency as its dependency and it's being installed as dev dependency on the gemspec so it wouldn't break in development/tests.
My suggestion is to add ruby-concurrent as a runtime dependency
The text was updated successfully, but these errors were encountered:
From the comment: `It seems it doesn't need to be threadsafe.`
Via zendesk#835 (comment)
I took a quick look and it seems it's safe to use a simple Hash
Fixes: zendesk#842Fixes: zendesk#840
If this is a bug report, please fill out the following:
Please verify that the problem you're seeing hasn't been fixed by the current
master
of ruby-kafka.It it's not, still showing using Concurrent::Map
Steps to reproduce
Expected outcome
Was expected to run normally
Actual outcome
=> Crashed: NameError: uninitialized constant Kafka::Consumer::Concurrent
vendor/bundle/ruby/2.6.0/gems/ruby-kafka-1.1.0/lib/kafka/consumer.rb:79:in `initialize'
Possible solution
In my case I solved adding
concurrent-ruby
as dependency and thenrequire 'concurrent/map'
on my lib file.I suspect this is caused because ActiveSupport install
ruby-concurrency
as its dependency and it's being installed as dev dependency on the gemspec so it wouldn't break in development/tests.My suggestion is to add
ruby-concurrent
as a runtime dependencyThe text was updated successfully, but these errors were encountered: