-
Notifications
You must be signed in to change notification settings - Fork 927
Code with usual string not formatted #4331
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Simpler repro: fn test_send_to_statsd() {
rt.block_on_std(async move {
let sink = StatsdSvc::new(config, Acker::Null).unwrap();
let messages = collect_n(rx, 1).compat().await.ok().unwrap();
assert_eq(
messages[0],
Bytes::from("vector.counter:1.5|c|#empty_tag:,normal_tag:value,true_tag\nvector.histogram:2|h|@0.01")
);
});
} |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Confirming that I can reproduce the issue with Input fn test_send_to_statsd() {
rt.block_on_std(async move {
let sink = StatsdSvc::new(config, Acker::Null).unwrap();
let messages = collect_n(rx, 1).compat().await.ok().unwrap();
assert_eq(
messages[0],
Bytes::from("vector.counter:1.5|c|#empty_tag:,normal_tag:value,true_tag\nvector.histogram:2|h|@0.01")
);
});
} output fn test_send_to_statsd() {
rt.block_on_std(async move {
let sink = StatsdSvc::new(config, Acker::Null).unwrap();
let messages = collect_n(rx, 1).compat().await.ok().unwrap();
assert_eq(
messages[0],
Bytes::from(
"vector.counter:1.5|c|#empty_tag:,normal_tag:value,true_tag\nvector.histogram:2|h|@0.01",
),
);
});
} output fn test_send_to_statsd() {
rt.block_on_std(async move {
let sink = StatsdSvc::new(config, Acker::Null).unwrap();
let messages = collect_n(rx, 1).compat().await.ok().unwrap();
assert_eq(
messages[0],
Bytes::from(
"vector.counter:1.5|c|#empty_tag:,normal_tag:value,true_tag\nvector.histogram:\
2|h|@0.01",
),
);
});
} @calebcartwright I don't think there's anything we can do at this time and I would recommend closing this |
Correct, it's another duplicate of #3863 |
Code from https://github.com/timberio/vector/blob/ff1884062e09956a7696a644f80c401e593d3e6f/src/sinks/statsd.rs but with small changes.
Code on playground not formatted: https://play.rust-lang.org/?version=nightly&mode=debug&edition=2018&gist=f18a74b89c3b1d2a1c894c0f056bc03e
But if comment line 178, code will be formatted.
Line 178:
I tried cargo-fmt and rustfmt directly.
The text was updated successfully, but these errors were encountered: