examples/client.rb in grenache-ruby-http-0.0.5 vs examples/client.rb in grenache-ruby-http-0.0.6
- old
+ new
@@ -1,18 +1,15 @@
-require 'grenache-ruby-base'
+require 'grenahce-ruby-http'
-require_relative "../lib/grenache/base-http.rb"
-
Grenache::Base.configure do |conf|
conf.grape_address = "http://127.0.0.1:40002/"
end
-c = Grenache::BaseHttp.new
+c = Grenache::Http.new
start_time = Time.now
10.times do |n|
resp = c.request("test","world #{n}")
puts resp
end
puts "Total Time: #{Time.now - start_time}"
-