@@ -86,7 +86,7 @@ pub async fn get_prism_logstream_info(
86
86
87
87
async fn get_stream_schema_helper ( stream_name : & str ) -> Result < Arc < Schema > , StreamError > {
88
88
// Ensure parseable is aware of stream in distributed mode
89
- if PARSEABLE . check_or_load_stream ( stream_name) . await {
89
+ if ! PARSEABLE . check_or_load_stream ( stream_name) . await {
90
90
return Err ( StreamNotFound ( stream_name. to_owned ( ) ) . into ( ) ) ;
91
91
}
92
92
@@ -152,7 +152,7 @@ async fn get_stream_info_helper(stream_name: &str) -> Result<StreamInfo, StreamE
152
152
// For query mode, if the stream not found in memory map,
153
153
//check if it exists in the storage
154
154
//create stream and schema from storage
155
- if PARSEABLE . check_or_load_stream ( stream_name) . await {
155
+ if ! PARSEABLE . check_or_load_stream ( stream_name) . await {
156
156
return Err ( StreamNotFound ( stream_name. to_owned ( ) ) . into ( ) ) ;
157
157
}
158
158
@@ -289,7 +289,7 @@ impl PrismDatasetRequest {
289
289
}
290
290
291
291
// Skip streams that don't exist
292
- if !self . stream_exists ( & stream) . await {
292
+ if !PARSEABLE . check_or_load_stream ( & stream) . await {
293
293
return Ok ( None ) ;
294
294
}
295
295
@@ -311,15 +311,6 @@ impl PrismDatasetRequest {
311
311
}
312
312
}
313
313
314
- async fn stream_exists ( & self , stream : & str ) -> bool {
315
- if PARSEABLE . check_or_load_stream ( stream) . await {
316
- warn ! ( "Stream not found: {stream}" ) ;
317
- false
318
- } else {
319
- true
320
- }
321
- }
322
-
323
314
async fn build_dataset_response (
324
315
& self ,
325
316
stream : String ,
0 commit comments