Skip to content

Commit 2ff0244

Browse files
move pstats name to utils
1 parent 45122d9 commit 2ff0244

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

src/parseable/streams.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ use serde::Serialize;
4646
use tokio::task::JoinSet;
4747
use tracing::{error, info, trace, warn};
4848

49+
use crate::utils::DATASET_STATS_STREAM_NAME;
4950
use crate::{
5051
cli::Options,
5152
event::{
@@ -71,7 +72,7 @@ use super::{
7172
},
7273
LogStream, ARROW_FILE_EXTENSION,
7374
};
74-
const DATASET_STATS_STREAM_NAME: &str = "pstats";
75+
7576
const MAX_CONCURRENT_FIELD_STATS: usize = 10;
7677

7778
#[derive(Serialize, Debug)]

src/utils/mod.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@ use datafusion::common::tree_node::TreeNode;
3737
use regex::Regex;
3838
use sha2::{Digest, Sha256};
3939

40+
pub const DATASET_STATS_STREAM_NAME: &str = "pstats";
41+
4042
pub fn get_node_id() -> String {
4143
let now = Utc::now().to_rfc3339();
4244
let id = get_hash(&now).to_string().split_at(15).0.to_string();

0 commit comments

Comments
 (0)