Use callMethod() because call() is reserved
This commit is contained in:
		@@ -70,7 +70,7 @@ class LRPCClient
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
  # call calls a method on the server with the given
 | 
					  # call calls a method on the server with the given
 | 
				
			||||||
  # argument and returns a promise.
 | 
					  # argument and returns a promise.
 | 
				
			||||||
  def call(rcvr, method, arg)
 | 
					  def callMethod(rcvr, method, arg)
 | 
				
			||||||
    return Promise.new do |resolve, reject|
 | 
					    return Promise.new do |resolve, reject|
 | 
				
			||||||
      # Get random UUID (this only works with TLS)
 | 
					      # Get random UUID (this only works with TLS)
 | 
				
			||||||
      id = crypto.randomUUID()
 | 
					      id = crypto.randomUUID()
 | 
				
			||||||
@@ -119,7 +119,7 @@ class LRPCChannel
 | 
				
			|||||||
  # done cancels the context corresponding to the channel
 | 
					  # done cancels the context corresponding to the channel
 | 
				
			||||||
  # on the server side and closes the channel.
 | 
					  # on the server side and closes the channel.
 | 
				
			||||||
  def done()
 | 
					  def done()
 | 
				
			||||||
    @client.call("lrpc", "ChannelDone", @id)
 | 
					    @client.callMethod("lrpc", "ChannelDone", @id)
 | 
				
			||||||
    self.close()
 | 
					    self.close()
 | 
				
			||||||
    @client._callMap.delete(@id)
 | 
					    @client._callMap.delete(@id)
 | 
				
			||||||
  end
 | 
					  end
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user