We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents e8ae086 + 7e1ec19 commit 10b47f1Copy full SHA for 10b47f1
1 file changed
kube-runtime/src/controller/mod.rs
@@ -69,7 +69,7 @@ impl Action {
69
///
70
/// Watch events are not normally missed, so running this once per hour (`Default`) as a fallback is reasonable.
71
#[must_use]
72
- pub fn requeue(duration: Duration) -> Self {
+ pub const fn requeue(duration: Duration) -> Self {
73
Self {
74
requeue_after: Some(duration),
75
}
@@ -84,7 +84,7 @@ impl Action {
84
/// It is therefore not recommended to disable requeuing this way, unless you have
85
/// frequent changes to the underlying object, or some other hook to retain eventual consistency.
86
87
- pub fn await_change() -> Self {
+ pub const fn await_change() -> Self {
88
Self { requeue_after: None }
89
90
0 commit comments