@@ -39,7 +39,7 @@ use crate::{
3939 base_path_without_preceding_slash,
4040 cluster:: {
4141 self , fetch_daily_stats, fetch_stats_from_ingestors, sync_streams_with_ingestors,
42- utils:: { IngestionStats , QueriedStats , StorageStats , merge_quried_stats } ,
42+ utils:: { IngestionStats , QueriedStats , StorageStats , merge_queried_stats } ,
4343 } ,
4444 logstream:: error:: StreamError ,
4545 modal:: { NodeMetadata , NodeType } ,
@@ -118,7 +118,7 @@ pub async fn put_stream(
118118 body : Bytes ,
119119) -> Result < impl Responder , StreamError > {
120120 let stream_name = stream_name. into_inner ( ) ;
121- let _ = CREATE_STREAM_LOCK . lock ( ) . await ;
121+ let _guard = CREATE_STREAM_LOCK . lock ( ) . await ;
122122 let headers = PARSEABLE
123123 . create_update_stream ( req. headers ( ) , & body, & stream_name)
124124 . await ?;
@@ -134,7 +134,7 @@ pub async fn put_stream(
134134 if is_update {
135135 Ok ( ( "Log stream updated" , StatusCode :: OK ) )
136136 } else {
137- Ok ( ( "Log stream created" , StatusCode :: OK ) )
137+ Ok ( ( "Log stream created" , StatusCode :: CREATED ) )
138138 }
139139}
140140
@@ -231,7 +231,7 @@ pub async fn get_stats(
231231
232232 let stats = if let Some ( mut ingestor_stats) = ingestor_stats {
233233 ingestor_stats. push ( stats) ;
234- merge_quried_stats ( ingestor_stats)
234+ merge_queried_stats ( ingestor_stats)
235235 } else {
236236 stats
237237 } ;
0 commit comments