@@ -101,7 +101,7 @@ pub trait ObjectStorage: Debug + Send + Sync + 'static {
101
101
) -> Result < HashMap < RelativePathBuf , Vec < Bytes > > , ObjectStorageError > {
102
102
let mut filters: HashMap < RelativePathBuf , Vec < Bytes > > = HashMap :: new ( ) ;
103
103
104
- let users_dir = RelativePathBuf :: from_iter ( [ USERS_ROOT_DIR ] ) ;
104
+ let users_dir = RelativePathBuf :: from ( USERS_ROOT_DIR ) ;
105
105
for user in self . list_dirs_relative ( & users_dir) . await ? {
106
106
let stream_dir = users_dir. join ( & user) . join ( "filters" ) ;
107
107
for stream in self . list_dirs_relative ( & stream_dir) . await ? {
@@ -127,7 +127,7 @@ pub trait ObjectStorage: Debug + Send + Sync + 'static {
127
127
) -> Result < HashMap < RelativePathBuf , Vec < Bytes > > , ObjectStorageError > {
128
128
let mut dashboards: HashMap < RelativePathBuf , Vec < Bytes > > = HashMap :: new ( ) ;
129
129
130
- let users_dir = RelativePathBuf :: from_iter ( [ USERS_ROOT_DIR ] ) ;
130
+ let users_dir = RelativePathBuf :: from ( USERS_ROOT_DIR ) ;
131
131
for user in self . list_dirs_relative ( & users_dir) . await ? {
132
132
let dashboards_path = users_dir. join ( & user) . join ( "dashboards" ) ;
133
133
let dashboard_bytes = self
@@ -153,7 +153,7 @@ pub trait ObjectStorage: Debug + Send + Sync + 'static {
153
153
) -> Result < HashMap < RelativePathBuf , Vec < Bytes > > , ObjectStorageError > {
154
154
let mut correlations: HashMap < RelativePathBuf , Vec < Bytes > > = HashMap :: new ( ) ;
155
155
156
- let users_dir = RelativePathBuf :: from_iter ( [ USERS_ROOT_DIR ] ) ;
156
+ let users_dir = RelativePathBuf :: from ( USERS_ROOT_DIR ) ;
157
157
for user in self . list_dirs_relative ( & users_dir) . await ? {
158
158
let correlations_path = users_dir. join ( & user) . join ( "correlations" ) ;
159
159
let correlation_bytes = self
@@ -376,7 +376,7 @@ pub trait ObjectStorage: Debug + Send + Sync + 'static {
376
376
}
377
377
378
378
async fn get_alerts ( & self ) -> Result < Vec < AlertConfig > , ObjectStorageError > {
379
- let alerts_path = RelativePathBuf :: from_iter ( [ ALERTS_ROOT_DIRECTORY ] ) ;
379
+ let alerts_path = RelativePathBuf :: from ( ALERTS_ROOT_DIRECTORY ) ;
380
380
let alerts = self
381
381
. get_objects (
382
382
Some ( & alerts_path) ,
@@ -700,7 +700,7 @@ pub trait ObjectStorage: Debug + Send + Sync + 'static {
700
700
}
701
701
702
702
async fn get_correlations ( & self ) -> Result < Vec < Bytes > , CorrelationError > {
703
- let correlation_path = RelativePathBuf :: from_iter ( [ CORRELATION_DIR ] ) ;
703
+ let correlation_path = RelativePathBuf :: from ( CORRELATION_DIR ) ;
704
704
let correlation_bytes = self
705
705
. get_objects (
706
706
Some ( & correlation_path) ,
0 commit comments