@@ -107,8 +107,7 @@ pub struct EventContext {
107107 pub identity : Option < CognitoIdentity > ,
108108}
109109
110- /// The client SDK for Lambda's Runtime APIs that implements the `RuntimeClient` trait.
111- /// This object is used by the `RustRuntime` to communicate with the internal endpoint.
110+ /// Used by the Runtime to communicate with the internal endpoint.
112111pub struct RuntimeClient {
113112 _runtime : Runtime ,
114113 http_client : Client < HttpConnector , Body > ,
@@ -117,15 +116,7 @@ pub struct RuntimeClient {
117116
118117impl RuntimeClient {
119118 /// Creates a new instance of the Runtime APIclient SDK. The http client has timeouts disabled and
120- /// always send the `Connection: keep-alive` header.
121- ///
122- /// # Arguments
123- ///
124- /// * `http_endpoint` The http endpoint for the Runtime APIs. This value comes from the AWS_LAMBDA_RUNTIME_API
125- /// environment variable.
126- ///
127- /// # Return
128- /// An instance of the Runtime APIs client SDK.
119+ /// will always send a `Connection: keep-alive` header.
129120 pub fn new ( endpoint : String , runtime : Option < Runtime > ) -> Result < Self , ApiError > {
130121 debug ! ( "Starting new HttpRuntimeClient for {}" , endpoint) ;
131122 // start a tokio core main event loop for hyper
@@ -145,10 +136,7 @@ impl RuntimeClient {
145136}
146137
147138impl RuntimeClient {
148- /// Makes the HTTP call to poll for new events to the Runtime APIs.
149- ///
150- /// # Return
151- /// A `Result` containing a tuple of the new event of type `E` and its `EventContext`.
139+ /// Polls for new events to the Runtime APIs.
152140 pub fn next_event ( & self ) -> Result < ( Vec < u8 > , EventContext ) , ApiError > {
153141 let uri = format ! (
154142 "http://{}/{}/runtime/invocation/next" ,
0 commit comments