@@ -101,7 +101,7 @@ impl ChunkStoreConfig {
101
101
} ;
102
102
103
103
/// 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 " ;
105
105
106
106
/// Environment variable to configure [`Self::chunk_max_bytes`].
107
107
pub const ENV_CHUNK_MAX_BYTES : & ' static str = "RERUN_CHUNK_MAX_BYTES" ;
@@ -126,14 +126,14 @@ impl ChunkStoreConfig {
126
126
/// Returns a copy of `self`, overriding existing fields with values from the environment if
127
127
/// they are present.
128
128
///
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`]
130
130
/// and [`Self::ENV_CHUNK_MAX_ROWS_IF_UNSORTED`].
131
131
pub fn apply_env ( & self ) -> ChunkStoreResult < Self > {
132
132
let mut new = self . clone ( ) ;
133
133
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 ) {
135
135
new. enable_changelog = s. parse ( ) . map_err ( |err| ChunkStoreError :: ParseConfig {
136
- name : Self :: ENV_ENABLE_CHANGELOG ,
136
+ name : Self :: ENV_STORE_ENABLE_CHANGELOG ,
137
137
value : s. clone ( ) ,
138
138
err : Box :: new ( err) ,
139
139
} ) ?;
@@ -171,7 +171,7 @@ impl ChunkStoreConfig {
171
171
#[ test]
172
172
fn chunk_store_config ( ) {
173
173
// 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" ) ;
175
175
std:: env:: set_var ( "RERUN_CHUNK_MAX_BYTES" , "42" ) ;
176
176
std:: env:: set_var ( "RERUN_CHUNK_MAX_ROWS" , "666" ) ;
177
177
std:: env:: set_var ( "RERUN_CHUNK_MAX_ROWS_IF_UNSORTED" , "999" ) ;
0 commit comments