Skip to content

Commit

Permalink
server: correct doc regarding unknown handlers and interceptors (#3195)
Browse files Browse the repository at this point in the history
  • Loading branch information
dfawley committed Nov 19, 2019
1 parent 5d4cc8a commit 24f6331
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server.go
Expand Up @@ -344,8 +344,8 @@ func StatsHandler(h stats.Handler) ServerOption {
// unknown service handler. The provided method is a bidi-streaming RPC service
// 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 bypasses interceptors.
// The handling function and stream interceptor (if set) have full access to
// the ServerStream, including its Context.
func UnknownServiceHandler(streamHandler StreamHandler) ServerOption {
return newFuncServerOption(func(o *serverOptions) {
o.unknownStreamDesc = &StreamDesc{
Expand Down

0 comments on commit 24f6331

Please sign in to comment.