Skip to content

Commit a75e38b

Browse files
leepadavidbarsky
authored andcommitted
Allow Context to be created outside of the Crate (#34)
The deadline property was restricted to the crate by the (super) addition to the property. Removing it has no impact on the crate but does allow users of the crate to create mock Contexts for testing their lambda functions.
1 parent 8a30517 commit a75e38b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lambda-runtime/src/context.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ pub struct Context {
6161

6262
/// The deadline for the current handler execution in milliseconds, based
6363
/// on a unix `MONOTONIC` clock.
64-
pub(super) deadline: i64,
64+
pub deadline: i64,
6565
}
6666

6767
impl Context {

0 commit comments

Comments
 (0)