mirror of
https://github.com/pomerium/pomerium.git
synced 2025-08-03 16:59:22 +02:00
core/lint: upgrade golangci-lint, replace interface{} with any (#5099)
* core/lint: upgrade golangci-lint, replace interface{} with any * regen proto
This commit is contained in:
parent
614048ae9c
commit
1a5b8b606f
135 changed files with 341 additions and 340 deletions
|
@ -15,12 +15,12 @@ const MetadataKeyPomeriumVersion = "x-pomerium-version"
|
|||
|
||||
// AttachMetadataInterceptors returns unary and server stream interceptors that attach metadata to the response.
|
||||
func AttachMetadataInterceptors(md metadata.MD) (grpc.UnaryServerInterceptor, grpc.StreamServerInterceptor) {
|
||||
unary := func(ctx context.Context, req interface{}, info *grpc.UnaryServerInfo, handler grpc.UnaryHandler) (resp interface{}, err error) {
|
||||
unary := func(ctx context.Context, req any, _ *grpc.UnaryServerInfo, handler grpc.UnaryHandler) (resp any, err error) {
|
||||
_ = grpc.SetHeader(ctx, md)
|
||||
return handler(ctx, req)
|
||||
}
|
||||
|
||||
stream := func(srv interface{}, ss grpc.ServerStream, info *grpc.StreamServerInfo, handler grpc.StreamHandler) error {
|
||||
stream := func(srv any, ss grpc.ServerStream, _ *grpc.StreamServerInfo, handler grpc.StreamHandler) error {
|
||||
_ = ss.SetHeader(md)
|
||||
return handler(srv, ss)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue