Repository navigation
Drop deprecated Connector setters and TlsOptions constructors - #93
Conversation
There was a problem hiding this comment.
Pull request overview
Removes previously-deprecated public APIs from the TLS options and client Connector builders, simplifying the surface area and nudging users onto the non-deprecated with_*/new APIs.
Changes:
- Removed deprecated
TlsOptionsconstructors and CA helper (no_ca,with_pem_ca_certs) along with the internalTlsCa::mergehelper used only by that deprecated path. - Removed deprecated
Connectorsetter-style methods in favor of the consuming builder-stylewith_*methods.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
src/tls/options.rs |
Drops deprecated TLS option constructors/helpers and their supporting merge helper. |
src/client/mod.rs |
Drops deprecated Connector setter methods, leaving only the with_* builder API. |
Suppressed comments (1)
src/client/mod.rs:1751
- The doc comment references
[Self::session_timeout], butConnector::session_timeoutwas removed in this PR (onlywith_session_timeoutremains), so this becomes a broken intra-doc link. Please update this reference (and also update the similar[Self::fail_eagerly]/[Self::session_timeout]links in theconnect()doc comment later in this impl) to point at the remainingwith_*builder methods.
/// Fail session establishment eagerly with [Error::NoHosts] when all hosts has been tried.
///
/// This permits fail-fast without wait up to [Self::session_timeout] in [Self::connect]. This
/// is not suitable for situations where ZooKeeper cluster is accessible via a single virtual IP.
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
961775d to
bc0cb4f
Compare
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 2 out of 2 changed files in this pull request and generated no new comments.
Suppressed comments (2)
src/client/mod.rs:1814
- Docstring grammar issues: “is turn on” → “is turned on”, and “with in approximate” → “within approximately”.
/// * [Error::NoHosts] if no host is available and [Self::with_fail_eagerly] is turn on
/// * [Error::SessionExpired] if specified session expired
/// * [Error::Timeout] if no session established with in approximate [Self::with_session_timeout]
src/client/mod.rs:1750
- Docstring grammar: “when all hosts has been tried” should be “have been tried”, and “without wait” should be “without waiting” for readability.
This issue also appears on line 1812 of the same file.
/// Fail session establishment eagerly with [Error::NoHosts] when all hosts has been tried.
///
/// This permits fail-fast without wait up to [Self::with_session_timeout] in [Self::connect]. This
bc0cb4f to
4adef3f
Compare
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 2 out of 2 changed files in this pull request and generated no new comments.
Suppressed comments (1)
src/client/mod.rs:1710
Connector::sessionhas been removed, but there is still a rustdoc link to it insrc/session/types.rs(seeSessionInfodoc comment referencing[Connector::session]). This will produce an unresolved rustdoc link warning (and can fail docs builds if warnings are denied). Please update those docs to referenceConnector::with_session(or otherwise remove the link).
/// Specifies session to reestablish.
pub fn with_session(mut self, session: SessionInfo) -> Self {
self.session = Some(session);
self
}
No description provided.