@@ -953,12 +953,6 @@ pub async fn put_stream_hot_tier(
953953 req : HttpRequest ,
954954 body : web:: Json < serde_json:: Value > ,
955955) -> Result < impl Responder , StreamError > {
956- if CONFIG . parseable . mode != Mode :: Query {
957- return Err ( StreamError :: Custom {
958- msg : "Hot tier can only be enabled in query mode" . to_string ( ) ,
959- status : StatusCode :: BAD_REQUEST ,
960- } ) ;
961- }
962956 let stream_name: String = req. match_info ( ) . get ( "logstream" ) . unwrap ( ) . parse ( ) . unwrap ( ) ;
963957 if !metadata:: STREAM_INFO . stream_exists ( & stream_name) {
964958 return Err ( StreamError :: StreamNotFound ( stream_name) ) ;
@@ -1008,13 +1002,6 @@ pub async fn put_stream_hot_tier(
10081002}
10091003
10101004pub async fn get_stream_hot_tier ( req : HttpRequest ) -> Result < impl Responder , StreamError > {
1011- if CONFIG . parseable . mode != Mode :: Query {
1012- return Err ( StreamError :: Custom {
1013- msg : "Hot tier can only be enabled in query mode" . to_string ( ) ,
1014- status : StatusCode :: BAD_REQUEST ,
1015- } ) ;
1016- }
1017-
10181005 let stream_name: String = req. match_info ( ) . get ( "logstream" ) . unwrap ( ) . parse ( ) . unwrap ( ) ;
10191006
10201007 if !metadata:: STREAM_INFO . stream_exists ( & stream_name) {
@@ -1040,13 +1027,6 @@ pub async fn get_stream_hot_tier(req: HttpRequest) -> Result<impl Responder, Str
10401027}
10411028
10421029pub async fn delete_stream_hot_tier ( req : HttpRequest ) -> Result < impl Responder , StreamError > {
1043- if CONFIG . parseable . mode != Mode :: Query {
1044- return Err ( StreamError :: Custom {
1045- msg : "Hot tier can only be enabled in query mode" . to_string ( ) ,
1046- status : StatusCode :: BAD_REQUEST ,
1047- } ) ;
1048- }
1049-
10501030 let stream_name: String = req. match_info ( ) . get ( "logstream" ) . unwrap ( ) . parse ( ) . unwrap ( ) ;
10511031
10521032 if !metadata:: STREAM_INFO . stream_exists ( & stream_name) {
0 commit comments