Skip to content

Commit c8c1c58

Browse files
committed
vdev fmt
1 parent 6b3bda0 commit c8c1c58

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/sinks/elasticsearch/config.rs

+3-1
Original file line numberDiff line numberDiff line change
@@ -443,7 +443,9 @@ impl DataStreamConfig {
443443
let (dtype, dataset, namespace) = if !self.auto_routing {
444444
(self.dtype(log)?, self.dataset(log)?, self.namespace(log)?)
445445
} else {
446-
let data_stream = log.get(event_path!("data_stream")).and_then(|ds| ds.as_object());
446+
let data_stream = log
447+
.get(event_path!("data_stream"))
448+
.and_then(|ds| ds.as_object());
447449
let dtype = data_stream
448450
.and_then(|ds| ds.get("type"))
449451
.map(|value| value.to_string_lossy().into_owned())

0 commit comments

Comments
 (0)