Skip to content

Commit

Permalink
Fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
StefanNienhuis committed Feb 18, 2022
1 parent 2124e11 commit 5768d06
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 2 deletions.
33 changes: 33 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
{
"configurations": [
{
"type": "lldb",
"request": "launch",
"name": "Debug MockServer",
"program": "${workspaceFolder:swift-aws-lambda-runtime}/.build/debug/MockServer",
"args": [],
"cwd": "${workspaceFolder:swift-aws-lambda-runtime}",
"preLaunchTask": "swift: Build Debug MockServer"
},
{
"type": "lldb",
"request": "launch",
"name": "Release MockServer",
"program": "${workspaceFolder:swift-aws-lambda-runtime}/.build/release/MockServer",
"args": [],
"cwd": "${workspaceFolder:swift-aws-lambda-runtime}",
"preLaunchTask": "swift: Build Release MockServer"
},
{
"type": "lldb",
"request": "launch",
"name": "Test swift-aws-lambda-runtime",
"program": "/Applications/Xcode.app/Contents/Developer/usr/bin/xctest",
"args": [
".build/debug/swift-aws-lambda-runtimePackageTests.xctest"
],
"cwd": "${workspaceFolder:swift-aws-lambda-runtime}",
"preLaunchTask": "swift: Build All"
}
]
}
3 changes: 1 addition & 2 deletions Sources/AWSLambdaRuntimeCore/ControlPlaneRequest.swift
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,7 @@ struct Invocation: Hashable {
self.requestID = requestID
self.deadlineInMillisSinceEpoch = unixTimeInMilliseconds
self.invokedFunctionARN = invokedFunctionARN
self.traceID = headers.first(name: AmazonHeaders.traceID) ??
"Root=\(AmazonHeaders.generateXRayTraceID());Sampled=0"
self.traceID = headers.first(name: AmazonHeaders.traceID) ?? "Root=\(AmazonHeaders.generateXRayTraceID());Sampled=0"
self.clientContext = headers["Lambda-Runtime-Client-Context"].first
self.cognitoIdentity = headers["Lambda-Runtime-Cognito-Identity"].first
}
Expand Down

0 comments on commit 5768d06

Please sign in to comment.