We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent eb8608b commit b7b95e3Copy full SHA for b7b95e3
1 file changed
stream/src/client/failover.rs
@@ -23,8 +23,9 @@ use std::sync::{
23
/// Only retry RpcIntErr that less than RpcIntErr::Method,
24
/// currently ignore custom error due to complexity of generic.
25
///
26
-/// NOTE: there's cycle reference inside FailoverPoolInner and it's ClientPool,
27
-/// don't clone FailoverPool as it has custom drop. FailoverPool should be put in Arc for usage.
+/// NOTE: there's cycle reference inside FailoverPoolInner and its ClientPool,
+/// FailoverPool::drop will break the cycle reference. This means we cannot impl Clone for FailoverPool,
28
+/// but you can put FailoverPool within Arc if you need to clone.
29
pub struct FailoverPool<F, P>(Arc<FailoverPoolInner<F, P>>)
30
where
31
F: ClientFacts,
0 commit comments