Skip to content

Commit a96a4a1

Browse files
committed
Rename to proper thing
1 parent 404e0d2 commit a96a4a1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Aws/Lambda/Runtime.hs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,18 +48,18 @@ invokeAndRun
4848
-> Context.Context
4949
-> IO ()
5050
invokeAndRun callback manager lambdaApi event context = do
51-
result <- invokeWithMode callback event context
51+
result <- invokeWithCallback callback event context
5252
Publish.result result lambdaApi context manager
5353
`catch` \err -> Publish.invocationError err lambdaApi context manager
5454

55-
invokeWithMode
55+
invokeWithCallback
5656
:: Throws Error.Invocation
5757
=> Throws Error.EnvironmentVariableNotSet
5858
=> Runtime.RunCallback
5959
-> ApiInfo.Event
6060
-> Context.Context
6161
-> IO Runtime.LambdaResult
62-
invokeWithMode callback event context = do
62+
invokeWithCallback callback event context = do
6363
handlerName <- Environment.handlerName
6464
let lambdaOptions = Runtime.LambdaOptions
6565
{ eventObject = LazyByteString.unpack $ ApiInfo.event event

0 commit comments

Comments
 (0)