Skip to content

Commit 5de6c15

Browse files
author
Jason Sia
committed
refactored func handler
1 parent 40b1631 commit 5de6c15

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

integration-sqs-to-lambda/Function.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
11
package integration_sqs_to_lambda
22

33
import (
4-
"context"
54
"fmt"
65
"github.com/aws/aws-lambda-go/events"
76
"github.com/aws/aws-lambda-go/lambda"
87
)
98

10-
func handler(ctx context.Context, event events.SQSEvent) error {
9+
func handler(event T) error {
1110
for _, record := range event.Records {
1211
err := processMessage(record)
1312
if err != nil {

0 commit comments

Comments
 (0)