Skip to content

Commit 001494a

Browse files
committed
Better naming
1 parent fdb36d3 commit 001494a

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

Sources/AWSLambdaRuntimeCore/ControlPlaneResponseDecoder.swift

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ struct ControlPlaneResponseDecoder: NIOSingleStepByteToMessageDecoder {
133133
case .deadlineMS(let deadline):
134134
head.deadlineInMillisSinceEpoch = deadline
135135

136-
case .weDontCare:
136+
case .ignore:
137137
break // switch
138138
}
139139
}
@@ -229,7 +229,7 @@ struct ControlPlaneResponseDecoder: NIOSingleStepByteToMessageDecoder {
229229
case functionARN(String)
230230
case requestID(LambdaRequestID)
231231

232-
case weDontCare
232+
case ignore
233233
case headerEnd
234234
}
235235

@@ -256,12 +256,12 @@ struct ControlPlaneResponseDecoder: NIOSingleStepByteToMessageDecoder {
256256
switch colonIndex {
257257
case 4:
258258
if buffer.readHeaderName("date") {
259-
return .weDontCare
259+
return .ignore
260260
}
261261

262262
case 12:
263263
if buffer.readHeaderName("content-type") {
264-
return .weDontCare
264+
return .ignore
265265
}
266266

267267
case 14:
@@ -313,12 +313,12 @@ struct ControlPlaneResponseDecoder: NIOSingleStepByteToMessageDecoder {
313313
return .requestID(requestID)
314314
}
315315
if buffer.readHeaderName("lambda-runtime-client-context") {
316-
return .weDontCare
316+
return .ignore
317317
}
318318

319319
case 31:
320320
if buffer.readHeaderName("lambda-runtime-cognito-identity") {
321-
return .weDontCare
321+
return .ignore
322322
}
323323

324324
case 35:
@@ -331,10 +331,10 @@ struct ControlPlaneResponseDecoder: NIOSingleStepByteToMessageDecoder {
331331
}
332332

333333
default:
334-
return .weDontCare
334+
return .ignore
335335
}
336336

337-
return .weDontCare
337+
return .ignore
338338
}
339339

340340
@discardableResult

0 commit comments

Comments
 (0)