Skip to content

Commit 0049e1b

Browse files
ingestor_id mapping
1 parent 70c0342 commit 0049e1b

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

src/parseable/mod.rs

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -620,11 +620,9 @@ impl Parseable {
620620
SchemaVersion::V1, // New stream
621621
log_source,
622622
);
623-
let ingestor_id = if let Some(ingestor_metadata) = INGESTOR_META.get() {
624-
Some(ingestor_metadata.get_node_id())
625-
} else {
626-
None
627-
};
623+
let ingestor_id = INGESTOR_META
624+
.get()
625+
.map(|ingestor_metadata| ingestor_metadata.get_node_id());
628626

629627
// Gets write privileges only for creating the stream when it doesn't already exist.
630628
self.streams.get_or_create(

0 commit comments

Comments
 (0)