Skip to content

Commit 0a0d1aa

Browse files
committed
Do some code cleaning
1 parent 23ac8dd commit 0a0d1aa

File tree

8 files changed

+6
-66
lines changed

8 files changed

+6
-66
lines changed

Examples/Deployment/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -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

@@ -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/Deployment/scripts/SAM/APIGateway-template.yml

Lines changed: 0 additions & 30 deletions
This file was deleted.

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

Lines changed: 0 additions & 28 deletions
This file was deleted.

Examples/Deployment/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/Deployment/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
@@ -35,7 +35,6 @@
3535

3636
#if compiler(>=5.5) && canImport(_Concurrency)
3737
import AWSLambdaRuntime
38-
import AWSLambdaRuntimeCore
3938
import Dispatch
4039
import Logging
4140
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)