krakow
krakow copied to clipboard
HTTP.with should be HTTP.with_headers ?
Tried running a consumer via the example:
Krakow::Consumer.new(:nsqlookupd
=> "http://127.0.0.1:4160", :topic => 'green', :channel => 'provider', :max_in_flight => 10)`
However, I get a <Krakow::Discovery:70300507763280>: Lookup exception encountered: NoMethodError - undefined method
with' for HTTP:Module` error
In https://github.com/chrisroberts/krakow/blob/master/lib/krakow/discovery.rb#L35
It shows the call as HTTP.wtih(:accept = '..') when it HTTP it was shown as HTTP.with_header
I run into the same problem today.