rpc: fix a comment typo (#16929)

This commit is contained in:
xincaosu 2018-06-11 17:01:13 +08:00 committed by Péter Szilágyi
parent eac16f9824
commit 1d666cf27e
1 changed files with 1 additions and 1 deletions

View File

@ -145,7 +145,7 @@ func (s *Server) serveRequest(ctx context.Context, codec ServerCodec, singleShot
defer cancel() defer cancel()
// if the codec supports notification include a notifier that callbacks can use // if the codec supports notification include a notifier that callbacks can use
// to send notification to clients. It is thight to the codec/connection. If the // to send notification to clients. It is tied to the codec/connection. If the
// connection is closed the notifier will stop and cancels all active subscriptions. // connection is closed the notifier will stop and cancels all active subscriptions.
if options&OptionSubscriptions == OptionSubscriptions { if options&OptionSubscriptions == OptionSubscriptions {
ctx = context.WithValue(ctx, notifierKey{}, newNotifier(codec)) ctx = context.WithValue(ctx, notifierKey{}, newNotifier(codec))