Add the missing comment

This commit is contained in:
iamqizhao
2016-04-19 16:25:23 -07:00
parent 310ca08496
commit 616cb8ecfe

View File

@ -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 { func UnaryInterceptor(i UnaryServerInterceptor) ServerOption {
return func(o *options) { return func(o *options) {
if o.unaryInt != nil { if o.unaryInt != nil {