Skip to content

Commit

Permalink
Hold off on using Option method that will become stable in 2 days :)
Browse files Browse the repository at this point in the history
  • Loading branch information
obi1kenobi committed Nov 26, 2024
1 parent c7b3a73 commit 25bba30
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ impl TracingClient {
let receiver = Arc::new(Mutex::new(receiver));

// Ensure our headers include the API key.
config.headers.get_or_insert_default().append(
config.headers.get_or_insert_with(Default::default).append(
"X-API-KEY",
HeaderValue::from_str(&config.api_key).expect("failed to convert API key into header"),
);
Expand Down

0 comments on commit 25bba30

Please sign in to comment.