# File lib/tarantool/em_db.rb, line 113 def call(result=INITIAL) result = _parse_iproto(result) unless result == INITIAL case result when INITIAL, ::IProto::ConnectionError, ::Tarantool::NonMaster rotate! if Exception === result rotate! until @i <= 0 || (repl = @replicas[0]).could_be_connected? if @i <= 0 EM.next_tick Curry1.new(@feed, NoMasterError.new("no available master connections")) return end repl.send_request(@response.request_type, @response.body, self) when Exception @feed.call result else @replicas_origin.replace @replicas @feed.call @response.parse_response(result) end end
Generated with the Darkfish Rdoc Generator 2.