swift-server / swift-aws-lambda-runtime

Swift implementation of AWS Lambda Runtime
Apache License 2.0
1.13k stars 102 forks source link

Lambda.Context should be a struct #215

Closed fabianfett closed 3 years ago

fabianfett commented 3 years ago

Lambda.Context is currently a class. But it is just a wrapper around values. This should be a value type.

fabianfett commented 3 years ago

Basically we need the changes from here, minus the addition of Baggage.

https://github.com/swift-server/swift-aws-lambda-runtime/pull/167/files

fabianfett commented 3 years ago

Thanks @jareyesda for fixing this! And congrats to your first open source contribution!