krakendio / krakend-lambda

Using a deprecated function, variable, constant or field GO-W1009
1 occurrence in this check
session.New is deprecated: Use NewSession functions to create sessions instead. NewSession has the same functionality as New except an error can be returned when the func is called instead of waiting to receive an error until a request is made.
 41func invokerFactory(o *Options) Invoker {
 42	if o.Config == nil {
 43		return lambda.New(session.New()) 44	}
 45	return lambda.New(session.Must(session.NewSession(o.Config)))