Skip to content

[Question] Unused middleware code in grpc interceptor? #3487

Open
@ionling

Description

Is this unused middleware code in grpc interceptor?
The result returns by the middleware.Chain() is ignored.

if next := s.streamMiddleware.Match(info.FullMethod); len(next) > 0 {
middleware.Chain(next...)(h)
}

And the code above conflicts with the following logic

if next := w.middleware.Match(info.Operation()); len(next) > 0 {
h = middleware.Chain(next...)(h)
}

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions