-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement primitive CreateTopics and DeleteTopics methods #8
Conversation
9bf6dfa
to
3c6ae26
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ping me once the rebase and such are g2g. Thanks Nick!
@thedodd changes made. Only question I have is around the error type for if we get an error on the oneshot receiver. Should we just wrap it in a |
@ncalibey yea, for the oneshot channels, we have the |
return if let Some(leader) = &cluster.controller { | ||
let uid = uuid::Uuid::new_v4(); | ||
leader.conn.delete_topics(uid, request, tx).await; | ||
unpack_broker_response(rx).await.and_then(|(_, res)| { | ||
if let ResponseKind::DeleteTopicsResponse(inner) = res { | ||
Ok(inner) | ||
} else { | ||
Err(ClientError::MalformedResponse) | ||
} | ||
}) | ||
} else { | ||
Err(ClientError::NoControllerFound) | ||
}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice! I like it.
No description provided.