Skip to content

Commit eb45a2c

Browse files
committed
Revert attribute name and util usage changes
1 parent c6aebd0 commit eb45a2c

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

cmd/localstack/custom_interop.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ func (l *LocalStackAdapter) SendStatus(status LocalStackStatus, payload []byte)
5252

5353
// The InvokeRequest is sent by LocalStack to trigger an invocation
5454
type InvokeRequest struct {
55-
InvokeId string `json:"request-id"`
55+
InvokeId string `json:"invoke-id"`
5656
InvokedFunctionArn string `json:"invoked-function-arn"`
5757
Payload string `json:"payload"`
5858
TraceId string `json:"trace-id"`

cmd/localstack/main.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ import (
1212

1313
"github.com/aws/aws-lambda-runtime-interface-emulator/internal/lambda/interop"
1414
"github.com/aws/aws-lambda-runtime-interface-emulator/internal/lambda/rapidcore"
15-
"github.com/aws/aws-lambda-runtime-interface-emulator/internal/lambda/rie"
1615
log "github.com/sirupsen/logrus"
1716
)
1817

@@ -245,7 +244,7 @@ func main() {
245244
// start runtime init. It is important to start `InitHandler` synchronously because we need to ensure the
246245
// notification channels and status fields are properly initialized before `AwaitInitialized`
247246
log.Debugln("Starting runtime init.")
248-
rie.InitHandler(sandbox.LambdaInvokeAPI(), GetEnvOrDie("AWS_LAMBDA_FUNCTION_VERSION"), int64(invokeTimeoutSeconds), bootstrap) // TODO: replace this with a custom init
247+
InitHandler(sandbox.LambdaInvokeAPI(), GetEnvOrDie("AWS_LAMBDA_FUNCTION_VERSION"), int64(invokeTimeoutSeconds), bootstrap, lsOpts.AccountId) // TODO: replace this with a custom init
249248

250249
log.Debugln("Awaiting initialization of runtime init.")
251250
if err := interopServer.delegate.AwaitInitialized(); err != nil {

0 commit comments

Comments
 (0)