Skip to main content

ensure_compacted_topic

Function ensure_compacted_topic 

Source
pub async fn ensure_compacted_topic(
    bootstrap: &str,
    topic: &str,
    security: Option<ClientSecurity>,
) -> Result<(), String>
Expand description

Ensure a compacted topic exists with one partition and the default replica count.

ยงErrors

Returns an error when configuration is invalid, protocol encoding fails, the broker rejects the request, or transport I/O fails.