Show how macaroon interceptor can work with streaming gRPC in Ruby doc
This commit is contained in:
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
|
||||
```
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user