Skip to content

Commit 212afe1

Browse files
committed
When constructing a Context from a HeaderMap, fill in the env_config field.
1 parent a9de2fc commit 212afe1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lambda/src/types.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,7 @@ impl TryFrom<HeaderMap> for Context {
136136
.to_str()
137137
.expect("Invalid XRayTraceID sent by Lambda; this is a bug")
138138
.to_owned(),
139+
env_config: Config::from_env()?,
139140
..Default::default()
140141
};
141142
Ok(ctx)

0 commit comments

Comments
 (0)