@@ -3,10 +3,10 @@ use std::{error::Error, result};
3
3
use serde;
4
4
use serde_json;
5
5
6
- use lambda_runtime_client:: RuntimeClient ;
7
6
use context:: Context ;
8
7
use env:: { ConfigProvider , EnvConfigProvider , FunctionSettings } ;
9
8
use error:: { HandlerError , RuntimeError } ;
9
+ use lambda_runtime_client:: RuntimeClient ;
10
10
use tokio:: runtime:: Runtime as TokioRuntime ;
11
11
12
12
const MAX_RETRIES : i8 = 3 ;
@@ -53,11 +53,8 @@ macro_rules! lambda {
53
53
/// The function panics if the `ConfigProvider` returns an error from the `get_runtime_api_endpoint()`
54
54
/// or `get_function_settings()` methods. The panic forces AWS Lambda to terminate the environment
55
55
/// and spin up a new one for the next invocation.
56
- pub ( crate ) fn start_with_config < E , O , C > (
57
- f : Handler < E , O > ,
58
- config : C ,
59
- runtime : Option < TokioRuntime > ,
60
- ) where
56
+ pub ( crate ) fn start_with_config < E , O , C > ( f : Handler < E , O > , config : C , runtime : Option < TokioRuntime > )
57
+ where
61
58
for < ' invocation > E : serde:: Deserialize < ' invocation > ,
62
59
O : serde:: Serialize ,
63
60
C : ConfigProvider ,
@@ -103,11 +100,8 @@ pub(crate) fn start_with_config<E, O, C>(
103
100
///
104
101
/// # Panics
105
102
/// The function panics if we cannot instantiate a new `RustRuntime` object.
106
- pub ( crate ) fn start_with_runtime_client < E , O > (
107
- f : Handler < E , O > ,
108
- func_settings : FunctionSettings ,
109
- client : RuntimeClient ,
110
- ) where
103
+ pub ( crate ) fn start_with_runtime_client < E , O > ( f : Handler < E , O > , func_settings : FunctionSettings , client : RuntimeClient )
104
+ where
111
105
for < ' invocation > E : serde:: Deserialize < ' invocation > ,
112
106
O : serde:: Serialize ,
113
107
{
0 commit comments