Show how macaroon interceptor can work with streaming gRPC in Ruby doc
This commit is contained in:
1 parent
6dd4fde56a
commit
8103db60de
1 file changed
+5
@@ -146,6 +146,11 @@ class MacaroonInterceptor < GRPC::ClientInterceptor
|
|||||||
metadata['macaroon'] = macaroon
|
metadata['macaroon'] = macaroon
|
||||||
yield
|
yield
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def server_streamer(request:, call:, method:, metadata:)
|
||||||
|
metadata['macaroon'] = macaroon
|
||||||
|
yield
|
||||||
|
end
|
||||||
end
|
end
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user