chore: update golangci-lint

This commit is contained in:
Steven 2023-10-21 16:05:34 +08:00
parent 16e17bffb3
commit 5b2a8394d7
2 changed files with 4 additions and 3 deletions

View File

@ -25,7 +25,8 @@ jobs:
- name: golangci-lint
uses: golangci/golangci-lint-action@v3
with:
args: -v
version: v1.54.1
args: --verbose --timeout=3m
skip-cache: true
go-tests:

View File

@ -4,7 +4,7 @@ import (
"context"
"fmt"
grpcRuntime "github.com/grpc-ecosystem/grpc-gateway/v2/runtime"
"github.com/grpc-ecosystem/grpc-gateway/v2/runtime"
"github.com/improbable-eng/grpc-web/go/grpcweb"
"github.com/labstack/echo/v4"
"google.golang.org/grpc"
@ -68,7 +68,7 @@ func (s *APIV2Service) RegisterGateway(ctx context.Context, e *echo.Echo) error
return err
}
gwMux := grpcRuntime.NewServeMux()
gwMux := runtime.NewServeMux()
if err := apiv2pb.RegisterSubscriptionServiceHandler(context.Background(), gwMux, conn); err != nil {
return err
}