/// Encode Topic metadata into a Topic FLV Reponse
Encode Topic metadata into a Topic FLV Reponse
Encode Topic metadata into a Topic FLV Reponse
pub fn topic_store_metadata_to_topic_response(
    topics: &TopicLocalStore,
    topic_name: &String,
) -> FlvFetchTopicResponse {
    if let Some(topic) = topics.topic(topic_name) {
        FlvFetchTopicResponse::new(
            topic_name.clone(),
            topic.spec.clone(),
            topic.status.clone(),
            None,
        )
    } else {
        FlvFetchTopicResponse::new_not_found(topic_name.clone())
    }
}
pub fn topic_store_metadata_to_topic_response ( topics : & TopicLocalStore , topic_name : & String , ) -> FlvFetchTopicResponse { if let Some ( topic ) = topics . topic ( topic_name ) { FlvFetchTopicResponse :: new ( topic_name . clone ( ) , topic . spec . clone ( ) , topic . status . clone ( ) , None , ) } else { FlvFetchTopicResponse :: new_not_found ( topic_name . clone ( ) ) } }
Encode Topic metadata into a Topic FLV Reponse
Encode Topic metadata into a Topic FLV Reponse
topics
&TopicLocalStore
topic_name
&String