forked from LaconicNetwork/kompose
update vendoring dependencies
This commit is contained in:
1 parent
daa85e2027
commit
3164cd8abb
803 files changed
+1850
-337484
No files matched your search
-15
@@ -1,15 +0,0 @@
|
||||
package timeutil
|
||||
|
||||
import (
|
||||
"time"
|
||||
)
|
||||
|
||||
func ExpBackoff(prev, max time.Duration) time.Duration {
|
||||
if prev == 0 {
|
||||
return time.Second
|
||||
}
|
||||
if prev > max/2 {
|
||||
return max
|
||||
}
|
||||
return 2 * prev
|
||||
}
|
||||
Reference in new issue
Block a user