aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/ruby/bin/math_server.rb
diff options
context:
space:
mode:
authorGravatar Tim Emiola <temiola@google.com>2015-03-05 15:17:30 -0800
committerGravatar Tim Emiola <temiola@google.com>2015-03-05 15:29:18 -0800
commit0ce8edc49ef4390deac36594bcc6f83b716466be (patch)
tree12169ae6846193069a622fc7d23777716da55ce3 /src/ruby/bin/math_server.rb
parent3a0d9768d3f167c9d54110ca08882d6c556658ca (diff)
Updates ruby code affected by the secure server API change
Diffstat (limited to 'src/ruby/bin/math_server.rb')
-rwxr-xr-xsrc/ruby/bin/math_server.rb5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/ruby/bin/math_server.rb b/src/ruby/bin/math_server.rb
index 93277e3932..5cc7613489 100755
--- a/src/ruby/bin/math_server.rb
+++ b/src/ruby/bin/math_server.rb
@@ -173,12 +173,11 @@ def main
end
end.parse!
+ s = GRPC::RpcServer.new
if options['secure']
- s = GRPC::RpcServer.new(creds: test_server_creds)
- s.add_http2_port(options['host'], true)
+ s.add_http2_port(options['host'], test_server_creds)
logger.info("... running securely on #{options['host']}")
else
- s = GRPC::RpcServer.new
s.add_http2_port(options['host'])
logger.info("... running insecurely on #{options['host']}")
end