diff options
author | temiola <temiola@google.com> | 2014-12-08 15:09:07 -0800 |
---|---|---|
committer | Nicolas Noble <nnoble@google.com> | 2014-12-08 18:50:13 -0800 |
commit | ba22e87c6874d240ecd821d0c30c5f01d62c2fdd (patch) | |
tree | 59419ecdba4ee135eda6307c79b89c29b94451c5 /src/ruby/lib | |
parent | 5ef51949bcd339c8bc615ec98f13c71bc503484a (diff) |
Adds ruby versions of the interop server and client
- Adds the service and message classes generated from beefcake and a patched proto compiler
- Adds an interop client that uses these service and message classes
- Adds an interop server that implement the service description
TESTED interop client works with the interop server
Change on 2014/12/08 by temiola <temiola@google.com>
-------------
Created by MOE: http://code.google.com/p/moe-java
MOE_MIGRATED_REVID=81615139
Diffstat (limited to 'src/ruby/lib')
-rw-r--r-- | src/ruby/lib/grpc/generic/rpc_desc.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ruby/lib/grpc/generic/rpc_desc.rb b/src/ruby/lib/grpc/generic/rpc_desc.rb index eef886a72f..b41543e084 100644 --- a/src/ruby/lib/grpc/generic/rpc_desc.rb +++ b/src/ruby/lib/grpc/generic/rpc_desc.rb @@ -90,7 +90,7 @@ module GRPC # error code and detail message. logger.debug("app error: #{active_call}, status:#{e.code}:#{e.details}") send_status(active_call, e.code, e.details) - rescue CallError => e + rescue Core::CallError => e # This is raised by GRPC internals but should rarely, if ever happen. # Log it, but don't notify the other endpoint.. logger.warn("failed call: #{active_call}\n#{e}") @@ -99,7 +99,7 @@ module GRPC # event. Send a status of deadline exceeded logger.warn("late call: #{active_call}") send_status(active_call, DEADLINE_EXCEEDED, 'late') - rescue EventError => e + rescue Core::EventError => e # This is raised by GRPC internals but should rarely, if ever happen. # Log it, but don't notify the other endpoint.. logger.warn("failed call: #{active_call}\n#{e}") |