Skip to content

Commit 1b8697d

Browse files
committed
let's be a lil more specific with that one
1 parent 6c63359 commit 1b8697d

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

crates/store/re_chunk_store/src/store.rs

+5-5
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ impl ChunkStoreConfig {
101101
};
102102

103103
/// Environment variable to configure [`Self::enable_changelog`].
104-
pub const ENV_ENABLE_CHANGELOG: &'static str = "RERUN_ENABLE_CHANGELOG";
104+
pub const ENV_STORE_ENABLE_CHANGELOG: &'static str = "RERUN_STORE_ENABLE_CHANGELOG";
105105

106106
/// Environment variable to configure [`Self::chunk_max_bytes`].
107107
pub const ENV_CHUNK_MAX_BYTES: &'static str = "RERUN_CHUNK_MAX_BYTES";
@@ -126,14 +126,14 @@ impl ChunkStoreConfig {
126126
/// Returns a copy of `self`, overriding existing fields with values from the environment if
127127
/// they are present.
128128
///
129-
/// See [`Self::ENV_ENABLE_CHANGELOG`], [`Self::ENV_CHUNK_MAX_BYTES`], [`Self::ENV_CHUNK_MAX_ROWS`]
129+
/// See [`Self::ENV_STORE_ENABLE_CHANGELOG`], [`Self::ENV_CHUNK_MAX_BYTES`], [`Self::ENV_CHUNK_MAX_ROWS`]
130130
/// and [`Self::ENV_CHUNK_MAX_ROWS_IF_UNSORTED`].
131131
pub fn apply_env(&self) -> ChunkStoreResult<Self> {
132132
let mut new = self.clone();
133133

134-
if let Ok(s) = std::env::var(Self::ENV_ENABLE_CHANGELOG) {
134+
if let Ok(s) = std::env::var(Self::ENV_STORE_ENABLE_CHANGELOG) {
135135
new.enable_changelog = s.parse().map_err(|err| ChunkStoreError::ParseConfig {
136-
name: Self::ENV_ENABLE_CHANGELOG,
136+
name: Self::ENV_STORE_ENABLE_CHANGELOG,
137137
value: s.clone(),
138138
err: Box::new(err),
139139
})?;
@@ -171,7 +171,7 @@ impl ChunkStoreConfig {
171171
#[test]
172172
fn chunk_store_config() {
173173
// Detect breaking changes in our environment variables.
174-
std::env::set_var("RERUN_ENABLE_CHANGELOG", "false");
174+
std::env::set_var("RERUN_STORE_ENABLE_CHANGELOG", "false");
175175
std::env::set_var("RERUN_CHUNK_MAX_BYTES", "42");
176176
std::env::set_var("RERUN_CHUNK_MAX_ROWS", "666");
177177
std::env::set_var("RERUN_CHUNK_MAX_ROWS_IF_UNSORTED", "999");

0 commit comments

Comments
 (0)