swift-server / swift-aws-lambda-runtime

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

InitializationContext should be a value not reference type #219

Closed fabianfett closed 3 years ago

fabianfett commented 3 years ago

Same treatment as #217 for InitializationContext. Since it is just a small struct, I didn't bother to create a CoW backing. Happy to do so, if wanted.

tomerd commented 3 years ago

Since it is just a small struct, I didn't bother to create a CoW backing. Happy to do so, if wanted.

I think its only used once while initializing, so should not impact performance too much.

fabianfett commented 3 years ago

@swift-server-bot test this please