Skip to content

Commit

Permalink
fix panic, part 3
Browse files Browse the repository at this point in the history
  • Loading branch information
smecsia committed Sep 21, 2024
1 parent 096a57a commit 5f98cab
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pkg/service/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -144,9 +144,9 @@ func New(ctx context.Context, opts ...Option) (Service, error) {
router = ginRouter
switch s.routingType {
case lambdaRoutingTypeFunctionUrl:
s.lambdaStartFunc = ginProxy.ProxyLambdaFunctionURL
s.lambdaStartFunc = s.ProxyLambdaFunctionURL
case lambdaRoutingTypeApiGw:
s.lambdaStartFunc = ginProxy.ProxyLambdaApiGateway
s.lambdaStartFunc = s.ProxyLambdaApiGateway
default:
return nil, errors.Errorf("Unknown routing type: %q \n", s.routingType)
}
Expand All @@ -156,6 +156,7 @@ func New(ctx context.Context, opts ...Option) (Service, error) {
}
})
ginRouter.GET("/api/swagger/*any", ginSwagger.WrapHandler(swaggerfiles.Handler))
ginProxy = s
}

s.server = &http.Server{
Expand Down

0 comments on commit 5f98cab

Please sign in to comment.