From 616cb8ecfe14f14fc5e1d6cb3d9e89cb720b3a4a Mon Sep 17 00:00:00 2001 From: iamqizhao Date: Tue, 19 Apr 2016 16:25:23 -0700 Subject: [PATCH] Add the missing comment --- server.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/server.go b/server.go index f7e674c7..53a2a92c 100644 --- a/server.go +++ b/server.go @@ -141,6 +141,9 @@ func Creds(c credentials.Credentials) ServerOption { } } +// UnaryInterceptor returns a ServerOption that sets the UnaryServerInterceptor for the +// server. Only one interceptor can be installed. The construction of multiple interceptors +// (e.g., chaining) can be implemented at the caller. func UnaryInterceptor(i UnaryServerInterceptor) ServerOption { return func(o *options) { if o.unaryInt != nil {