lib/ruby_skynet/connection.rb in ruby_skynet-0.4.0 vs lib/ruby_skynet/connection.rb in ruby_skynet-0.5.0

- old
+ new

@@ -106,11 +106,11 @@ end # Performs a synchronous call to a Skynet server # # Parameters: - # service_name [String|Symbol]: + # skynet_name [String|Symbol]: # Name of the method to pass in the request # method_name [String|Symbol]: # Name of the method to pass in the request # parameters [Hash]: # Parameters to pass in the request @@ -120,17 +120,17 @@ # # Returns the Hash result returned from the Skynet Service # # Raises RubySkynet::ProtocolError # Raises RubySkynet::SkynetException - def rpc_call(request_id, service_name, method_name, parameters, idempotent=false) + def rpc_call(request_id, skynet_name, method_name, parameters, idempotent=false) retry_count = 0 header = nil response = nil socket.retry_on_connection_failure do |socket| header = { - 'servicemethod' => "#{service_name}.Forward", + 'servicemethod' => "#{skynet_name}.Forward", 'seq' => socket.user_data[:seq] } @logger.debug "Sending Header" @logger.trace 'Header', header