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

This commit is contained in:
Vincent Woo committed 2018-10-26 14:17:35 -07:00
1 parent 6dd4fde56a
commit 8103db60de
1 file changed
+5
+5
View File
@@ -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
```