feat: add SLA package which defines a global ctx timeout

This commit is contained in:
Mohamed Sohail 2023-04-11 10:15:33 +00:00
parent eba329eefa
commit 21a17d2735
Signed by: kamikazechaser
GPG Key ID: 7DD45520C01CD85D

8
pkg/util/sla.go Normal file
View File

@ -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
)