File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -374,10 +374,8 @@ impl Parseable {
374374 stream_type : StreamType ,
375375 log_source : LogSource ,
376376 ) -> Result < bool , PostError > {
377- let mut stream_exists = false ;
378377 if self . streams . contains ( stream_name) {
379- stream_exists = true ;
380- return Ok ( stream_exists) ;
378+ return Ok ( true ) ;
381379 }
382380
383381 // For distributed deployments, if the stream not found in memory map,
@@ -388,7 +386,7 @@ impl Parseable {
388386 . create_stream_and_schema_from_storage ( stream_name)
389387 . await ?
390388 {
391- return Ok ( stream_exists ) ;
389+ return Ok ( false ) ;
392390 }
393391
394392 self . create_stream (
@@ -403,7 +401,7 @@ impl Parseable {
403401 )
404402 . await ?;
405403
406- Ok ( stream_exists )
404+ Ok ( false )
407405 }
408406
409407 pub async fn create_update_stream (
You can’t perform that action at this time.
0 commit comments