Skip to content

Commit 36e7955

Browse files
committed
Rename ENV variables
1 parent 026ce90 commit 36e7955

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

Examples/LocalDebugging/MyLambda/Sources/MyLambda/main.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
import AWSLambdaRuntime
2929
import Shared
3030

31-
// set LOCAL_LAMBDA_SERVER_ENABLED env variable to "true" to start
31+
// set LOCAL_SCF_SERVER_ENABLED env variable to "true" to start
3232
// a local server simulator which will allow local debugging
3333
Lambda.run { (_, request: Request, callback: @escaping (Result<Response, Error>) -> Void) in
3434
// TODO: something useful

Examples/LocalDebugging/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ using the relevant `MyLambda` and `MyApp` Xcode schemes.
2020

2121
Start with running the `MyLambda` target.
2222
* Switch to the `MyLambda` scheme and select the "My Mac" destination
23-
* Set the `LOCAL_LAMBDA_SERVER_ENABLED` environment variable to `true` by editing the `MyLambda` scheme Run/Arguments options.
23+
* Set the `LOCAL_SCF_SERVER_ENABLED` environment variable to `true` by editing the `MyLambda` scheme Run/Arguments options.
2424
* Hit `Run`
2525
* Once it is up you should see a log message in the Xcode console saying
2626
`LocalLambdaServer started and listening on 127.0.0.1:7000, receiving events on /invoke`

Sources/AWSLambdaRuntimeCore/Lambda.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ public enum Lambda {
146146

147147
// start local server for debugging in DEBUG mode only
148148
#if DEBUG
149-
if Lambda.env("LOCAL_LAMBDA_SERVER_ENABLED").flatMap(Bool.init) ?? false {
149+
if Lambda.env("LOCAL_SCF_SERVER_ENABLED").flatMap(Bool.init) ?? false {
150150
do {
151151
return try Lambda.withLocalServer {
152152
_run(configuration, factory)

0 commit comments

Comments
 (0)