fn make_unsubscribe_frame(channel_name: String, num_subs: usize) -> Frame {
    let mut response = Frame::array();
    response.push_bulk(Bytes::from_static(b"unsubscribe"));
    response.push_bulk(Bytes::from(channel_name));
    response.push_int(num_subs as u64);
    response
}
/// Creates the response to an unsubcribe request.
Creates the response to an unsubcribe request.
Creates the response to an unsubcribe request .
fn make_unsubscribe_frame(channel_name: String, num_subs: usize) -> Frame {
    let mut response = Frame::array();
    response.push_bulk(Bytes::from_static(b"unsubscribe"));
    response.push_bulk(Bytes::from(channel_name));
    response.push_int(num_subs as u64);
    response
}
fn make_unsubscribe_frame ( channel_name : String , num_subs : usize ) -> Frame { let mut response = Frame :: array ( ) ; response . push_bulk ( Bytes :: from_static ( b" " ) ) ; response . push_bulk ( Bytes :: from ( channel_name ) ) ; response . push_int ( num_subs as u64 ) ; response }
Creates the response to an unsubcribe request.
Creates the response to an unsubcribe request .
channel_name
String
num_subs
usize