(ctx context.Context, desc *grpc.StreamDesc, cc *grpc.ClientConn, method string, streamer grpc.Streamer, opts ...grpc.CallOption)
| 36 | } |
| 37 | |
| 38 | func (ni namespaceInterceptor) stream(ctx context.Context, desc *grpc.StreamDesc, cc *grpc.ClientConn, method string, streamer grpc.Streamer, opts ...grpc.CallOption) (grpc.ClientStream, error) { |
| 39 | _, ok := namespaces.Namespace(ctx) |
| 40 | if !ok { |
| 41 | ctx = namespaces.WithNamespace(ctx, ni.namespace) |
| 42 | } |
| 43 | |
| 44 | return streamer(ctx, desc, cc, method, opts...) |
| 45 | } |
| 46 | |
| 47 | func newNSInterceptors(ns string) (grpc.UnaryClientInterceptor, grpc.StreamClientInterceptor) { |
| 48 | ni := namespaceInterceptor{ |
nothing calls this directly
no test coverage detected