Skip to content

Commit

Permalink
Rename CaptureBytes context_key ➡ metadata_key (#133)
Browse files Browse the repository at this point in the history
Bringing this naming inline with #121
  • Loading branch information
markmandel authored Nov 14, 2020
1 parent ae88d4a commit 4c2f06f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/extensions/filters/capture_bytes/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ struct CaptureBytes {
capture: Box<dyn Capture + Sync + Send>,
/// metrics reporter for this filter.
metrics: Metrics,
context_key: String,
metadata_key: String,
size: usize,
remove: bool,
}
Expand All @@ -114,7 +114,7 @@ impl CaptureBytes {
log: base.new(o!("source" => "extensions::CaptureBytes")),
capture,
metrics,
context_key: config.metadata_key,
metadata_key: config.metadata_key,
size: config.size,
remove: config.remove,
}
Expand All @@ -141,7 +141,7 @@ impl Filter for CaptureBytes {
.capture(&mut ctx.contents, self.size, self.remove);

ctx.metadata
.insert(self.context_key.clone(), Box::new(token));
.insert(self.metadata_key.clone(), Box::new(token));

Some(ctx.into())
}
Expand Down

0 comments on commit 4c2f06f

Please sign in to comment.