mirror of
https://github.com/fnproject/fn.git
synced 2022-10-28 21:29:17 +03:00
* fn: bring back CH ring placer into FN repo based on original FnLB * fn: move placement code into runnerpool directory
13 lines
127 B
Go
13 lines
127 B
Go
package common
|
|
|
|
import (
|
|
"time"
|
|
)
|
|
|
|
func MinDuration(f, s time.Duration) time.Duration {
|
|
if f < s {
|
|
return f
|
|
}
|
|
return s
|
|
}
|