Skip to content

Commit 762ff66

Browse files
update mttr path
1 parent 5bd88f4 commit 762ff66

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/metastore/metastores/object_store_metastore.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ use crate::{
5252
SETTINGS_ROOT_DIRECTORY, STREAM_METADATA_FILE_NAME, STREAM_ROOT_DIRECTORY,
5353
TARGETS_ROOT_DIRECTORY,
5454
object_storage::{
55-
alert_json_path, alert_state_json_path, filter_path, manifest_path,
55+
alert_json_path, alert_state_json_path, filter_path, manifest_path, mttr_json_path,
5656
parseable_json_path, schema_path, stream_json_path, to_bytes,
5757
},
5858
},
@@ -310,7 +310,7 @@ impl Metastore for ObjectStoreMetastore {
310310

311311
/// Get MTTR history from storage
312312
async fn get_mttr_history(&self) -> Result<Option<MTTRHistory>, MetastoreError> {
313-
let path = RelativePathBuf::from_iter([ALERTS_ROOT_DIRECTORY, "mttr.json"]);
313+
let path = mttr_json_path();
314314
match self.storage.get_object(&path).await {
315315
Ok(bytes) => {
316316
if let Ok(history) = serde_json::from_slice::<MTTRHistory>(&bytes) {

0 commit comments

Comments
 (0)