diff --git a/doc.go b/doc.go index 716895036..e7f782a2d 100644 --- a/doc.go +++ b/doc.go @@ -62,8 +62,8 @@ needed. For example: func FakeAuthStreamingInterceptor(srv interface{}, stream grpc.ServerStream, info *grpc.StreamServerInfo, handler grpc.StreamHandler) error { newStream := grpc_middleware.WrapServerStream(stream) - newStream.WrappedContext = context.WithValue(ctx, "user_id", "john@example.com") - return handler(srv, stream) + newStream.WrappedContext = context.WithValue(stream.Context(), "user_id", "john@example.com") + return handler(srv, newStream) } */ package grpc_middleware