Skip to content

Commit

Permalink
chore(performance): Update VRL to bring in Box<str> key string change
Browse files Browse the repository at this point in the history
  • Loading branch information
bruceg committed Oct 14, 2024
1 parent 9bd2593 commit 4f8f7c7
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ toml = { version = "0.8.19", default-features = false, features = ["display", "p
tonic = { version = "0.11", default-features = false, features = ["transport", "codegen", "prost", "tls", "tls-roots", "gzip"] }
tonic-build = { version = "0.11", default-features = false, features = ["transport", "prost"] }
uuid = { version = "1.10.0", features = ["v4", "v7", "serde"] }
vrl = { git = "https://github.com/vectordotdev/vrl", branch = "main", features = ["arbitrary", "cli", "test", "test_framework"] }
vrl = { git = "https://github.com/vectordotdev/vrl", rev = "e5587d4c9878658363e50f50fb12b9be0be41bf9", features = ["arbitrary", "cli", "test", "test_framework"] }

[dependencies]
pin-project.workspace = true
Expand Down
12 changes: 6 additions & 6 deletions lib/vector-core/src/event/test/size_of.rs
Original file line number Diff line number Diff line change
Expand Up @@ -72,32 +72,32 @@ fn size_greater_than_allocated_size() {
#[derive(Debug, Clone)]
pub(crate) enum Action {
Contains {
key: String,
key: KeyString,
},
SizeOf,
/// Insert a key/value pair into the [`LogEvent`]
InsertFlat {
key: String,
key: KeyString,
value: Value,
},
Remove {
key: String,
key: KeyString,
},
}

impl Arbitrary for Action {
fn arbitrary(g: &mut Gen) -> Self {
match u8::arbitrary(g) % 3 {
0 => Action::InsertFlat {
key: String::from(Name::arbitrary(g)),
key: String::from(Name::arbitrary(g)).into(),
value: Value::arbitrary(g),
},
1 => Action::SizeOf,
2 => Action::Contains {
key: String::from(Name::arbitrary(g)),
key: String::from(Name::arbitrary(g)).into(),
},
3 => Action::Remove {
key: String::from(Name::arbitrary(g)),
key: String::from(Name::arbitrary(g)).into(),
},
_ => unreachable!(),
}
Expand Down

0 comments on commit 4f8f7c7

Please sign in to comment.