File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -883,7 +883,7 @@ pub fn watch_object<K: Resource + Clone + DeserializeOwned + Debug + Send + 'sta
883
883
} )
884
884
}
885
885
886
- struct ExponentialBackoff {
886
+ pub struct ExponentialBackoff {
887
887
inner : backon:: ExponentialBackoff ,
888
888
builder : backon:: ExponentialBuilder ,
889
889
}
@@ -921,6 +921,15 @@ impl Iterator for ExponentialBackoff {
921
921
}
922
922
}
923
923
924
+ impl From < backon:: ExponentialBuilder > for ExponentialBackoff {
925
+ fn from ( builder : backon:: ExponentialBuilder ) -> Self {
926
+ Self {
927
+ inner : builder. build ( ) ,
928
+ builder,
929
+ }
930
+ }
931
+ }
932
+
924
933
/// Default watcher backoff inspired by Kubernetes' client-go.
925
934
///
926
935
/// The parameters currently optimize for being kind to struggling apiservers.
You can’t perform that action at this time.
0 commit comments