Skip to content

Commit 8d6c7ce

Browse files
committed
Alphabetically sorting class methods
1 parent 996f4f4 commit 8d6c7ce

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

lib/protobuf/rpc/connectors/base.rb

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -137,13 +137,6 @@ def ping_port_enabled?
137137
ENV.key?("PB_RPC_PING_PORT")
138138
end
139139

140-
def request_fields
141-
{ :service_name => @options[:service].name,
142-
:method_name => @options[:method].to_s,
143-
:request_proto => @options[:request],
144-
:caller => request_caller }
145-
end
146-
147140
def request_bytes
148141
validate_request_type!
149142
return ::Protobuf::Socketrpc::Request.encode(request_fields)
@@ -155,6 +148,13 @@ def request_caller
155148
@options[:client_host] || ::Protobuf.client_host
156149
end
157150

151+
def request_fields
152+
{ :service_name => @options[:service].name,
153+
:method_name => @options[:method].to_s,
154+
:request_proto => @options[:request],
155+
:caller => request_caller }
156+
end
157+
158158
def send_request
159159
fail 'If you inherit a Connector from Base you must implement send_request'
160160
end

0 commit comments

Comments
 (0)