File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed
Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -855,10 +855,12 @@ impl Context {
855855 /// Return error in case it was not possible to determind the deployment.
856856 fn is_enterprise_internal ( & self ) -> Result < bool , RedisError > {
857857 let info_res = self . call ( "info" , & [ "server" ] ) ?;
858- match info_res {
859- RedisValue :: BulkRedisString ( res) => Ok ( res. try_as_str ( ) ?. contains ( "rlec_version:" ) ) ,
860- _ => Err ( RedisError :: Str ( "Mismatch call reply type" ) ) ,
861- }
858+ let info = match & info_res {
859+ RedisValue :: BulkRedisString ( res) => res. try_as_str ( ) ?,
860+ RedisValue :: SimpleString ( res) => res. as_str ( ) ,
861+ _ => return Err ( RedisError :: Str ( "Mismatch call reply type" ) ) ,
862+ } ;
863+ Ok ( info. contains ( "rlec_version:" ) )
862864 }
863865
864866 /// Return `true` is the current Redis deployment is enterprise, otherwise `false`.
You can’t perform that action at this time.
0 commit comments