krakow icon indicating copy to clipboard operation
krakow copied to clipboard

HTTP.with should be HTTP.with_headers ?

Open rapicastillo opened this issue 8 years ago • 1 comments

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 methodwith' 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

rapicastillo avatar Mar 04 '16 20:03 rapicastillo

I run into the same problem today.

daqing avatar Dec 24 '18 05:12 daqing