feat: add SLA package which defines a global ctx timeout
This commit is contained in:
parent
eba329eefa
commit
21a17d2735
|
@ -0,0 +1,8 @@
|
||||||
|
package util
|
||||||
|
|
||||||
|
import "time"
|
||||||
|
|
||||||
|
const (
|
||||||
|
// SLATimeout is the max duration after which any network call/context should be aborted.
|
||||||
|
SLATimeout = 5 * time.Second
|
||||||
|
)
|
Loading…
Reference in New Issue