chore: fix linter

This commit is contained in:
Steven
2024-05-20 20:40:11 +08:00
parent 0fc3497a5b
commit f98a61ba94
7 changed files with 5312 additions and 4292 deletions

View File

@ -69,11 +69,10 @@ func (s *APIV1Service) GetGRPCServer() *grpc.Server {
}
// RegisterGateway registers the gRPC-Gateway with the given Echo instance.
func (s *APIV1Service) RegisterGateway(ctx context.Context, e *echo.Echo) error {
func (s *APIV1Service) RegisterGateway(_ context.Context, e *echo.Echo) error {
// Create a client connection to the gRPC Server we just started.
// This is where the gRPC-Gateway proxies the requests.
conn, err := grpc.DialContext(
ctx,
conn, err := grpc.NewClient(
fmt.Sprintf(":%d", s.grpcServerPort),
grpc.WithTransportCredentials(insecure.NewCredentials()),
)