mirror of https://github.com/grpc/grpc-go.git
Update UnknownServiceHandler comment to be clearer about interceptor behavior (#1566)
This commit is contained in:
parent
22c3f92f5f
commit
5279edf262
|
|
@ -278,7 +278,7 @@ func StatsHandler(h stats.Handler) ServerOption {
|
|||
// handler that will be invoked instead of returning the "unimplemented" gRPC
|
||||
// error whenever a request is received for an unregistered service or method.
|
||||
// The handling function has full access to the Context of the request and the
|
||||
// stream, and the invocation passes through interceptors.
|
||||
// stream, and the invocation bypasses interceptors.
|
||||
func UnknownServiceHandler(streamHandler StreamHandler) ServerOption {
|
||||
return func(o *options) {
|
||||
o.unknownStreamDesc = &StreamDesc{
|
||||
|
|
|
|||
Loading…
Reference in New Issue