Skip to content

Commit b91487c

Browse files
committed
Do some code cleaning
1 parent d004347 commit b91487c

File tree

10 files changed

+12
-14
lines changed

10 files changed

+12
-14
lines changed

Examples/LambdaFunctions/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ Steps to deploy this sample to AWS Lambda using the AWS CLI:
2727
./scripts/deploy.sh
2828
```
2929

30-
Notes:
30+
Notes:
3131
- This script assumes you have AWS CLI installed and credentials setup in `~/.aws/credentials`.
3232
- The default lambda function name is `SwiftSample`. You can specify a different one updating `lambda_name` in `deploy.sh`
3333
- Update `s3_bucket=swift-lambda-test` in `deploy.sh` before running (AWS S3 buckets require a unique global name)
@@ -87,7 +87,7 @@ The SAM template will provide an output labelled `LambdaApiGatewayEndpoint` whic
8787

8888
```
8989
curl <<LambdaApiGatewayEndpoint>>
90-
```
90+
```
9191

9292
***Warning:*** This SAM template is only intended as a sample and creates a publicly accessible HTTP endpoint.
9393

@@ -129,7 +129,7 @@ The `serverless-deploy.sh` script passes through any parameters to the Serverles
129129

130130
For the APIGateway sample:
131131

132-
The Serverless template will provide an endpoint which you can use to test the Lambda.
132+
The Serverless template will provide an endpoint which you can use to test the Lambda.
133133

134134
Outuput example:
135135

@@ -162,7 +162,7 @@ For example:
162162

163163
```
164164
curl https://r39lvhfng3.execute-api.us-east-1.amazonaws.com/api
165-
```
165+
```
166166

167167
***Warning:*** This Serverless template is only intended as a sample and creates a publicly accessible HTTP endpoint.
168168

Examples/LambdaFunctions/scripts/SAM/ErrorHandling-template.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,5 @@ Resources:
1010
Handler: Provided
1111
Runtime: provided
1212
CodeUri: ../../.build/lambda/ErrorHandling/lambda.zip
13-
# Instructs new versions to be published to an alias named "live".
13+
# Instructs new versions to be published to an alias named "live".
1414
AutoPublishAlias: live

Examples/LambdaFunctions/scripts/serverless/APIGateway-template.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ provider:
1616
- logs:CreateLogGroup
1717
- logs:CreateLogStream
1818
- logs:PutLogEvents
19-
Resource: "*"
19+
Resource: "*"
2020

2121
functions:
2222
httpGet:

Examples/LambdaFunctions/scripts/serverless/Benchmark-template.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ provider:
1212
- logs:CreateLogGroup
1313
- logs:CreateLogStream
1414
- logs:PutLogEvents
15-
Resource: "*"
15+
Resource: "*"
1616

1717
functions:
1818
benchmarkFunction:

Examples/LambdaFunctions/scripts/serverless/CurrencyExchange-template.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ provider:
1212
- logs:CreateLogGroup
1313
- logs:CreateLogStream
1414
- logs:PutLogEvents
15-
Resource: "*"
15+
Resource: "*"
1616

1717
functions:
1818
currencyExchangeFunction:

Examples/LambdaFunctions/scripts/serverless/ErrorHandling-template.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ provider:
1212
- logs:CreateLogGroup
1313
- logs:CreateLogStream
1414
- logs:PutLogEvents
15-
Resource: "*"
15+
Resource: "*"
1616

1717
functions:
1818
errorHandlingFunction:

Examples/LambdaFunctions/scripts/serverless/HelloWorld-template.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ provider:
1212
- logs:CreateLogGroup
1313
- logs:CreateLogStream
1414
- logs:PutLogEvents
15-
Resource: "*"
15+
Resource: "*"
1616

1717
functions:
1818
hello:

Sources/AWSLambdaRuntimeCore/Utils.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
//===----------------------------------------------------------------------===//
1414

1515
import Dispatch
16-
import NIOPosix
1716

1817
internal enum Consts {
1918
static let apiPrefix = "/2018-06-01"

Sources/AWSLambdaTesting/Lambda+Testing.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@
3737

3838
#if compiler(>=5.5) && canImport(_Concurrency)
3939
import AWSLambdaRuntime
40-
import AWSLambdaRuntimeCore
4140
import Dispatch
4241
import Logging
4342
import NIOCore

readme.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ First, add a dependency on the event packages:
144144

145145
Beyond the small cognitive complexity of using the `EventLoopFuture` based APIs, note these APIs should be used with extra care. An `EventLoopLambdaHandler` will execute the user code on the same `EventLoop` (thread) as the library, making processing faster but requiring the user code to never call blocking APIs as it might prevent the underlying process from functioning.
146146

147-
## Deploying to AWS Lambda
147+
## Deploying to AWS Lambda
148148

149149
To deploy Lambda functions to AWS Lambda, you need to compile the code for Amazon Linux which is the OS used on AWS Lambda microVMs, package it as a Zip file, and upload to AWS.
150150

@@ -160,7 +160,7 @@ The library defines three protocols for the implementation of a Lambda Handler.
160160

161161
### ByteBufferLambdaHandler
162162

163-
An `EventLoopFuture` based processing protocol for a Lambda that takes a `ByteBuffer` and returns a `ByteBuffer?` asynchronously.
163+
An `EventLoopFuture` based processing protocol for a Lambda that takes a `ByteBuffer` and returns a `ByteBuffer?` asynchronously.
164164

165165
`ByteBufferLambdaHandler` is the lowest level protocol designed to power the higher level `EventLoopLambdaHandler` and `LambdaHandler` based APIs. Users are not expected to use this protocol, though some performance sensitive applications that operate at the `ByteBuffer` level or have special serialization needs may choose to do so.
166166

0 commit comments

Comments
 (0)