Show how macaroon interceptor can work with streaming gRPC in Ruby doc

This commit is contained in:
Vincent Woo 2018-10-26 14:02:32 -07:00
parent 6dd4fde56a
commit 8103db60de

@ -146,6 +146,11 @@ class MacaroonInterceptor < GRPC::ClientInterceptor
metadata['macaroon'] = macaroon
yield
end
def server_streamer(request:, call:, method:, metadata:)
metadata['macaroon'] = macaroon
yield
end
end
```