mirror of
https://github.com/grassrootseconomics/cic-custodial.git
synced 2024-12-22 01:47:31 +01:00
feat: add SLA package which defines a global ctx timeout
This commit is contained in:
parent
eba329eefa
commit
21a17d2735
8
pkg/util/sla.go
Normal file
8
pkg/util/sla.go
Normal 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
|
||||
)
|
Loading…
Reference in New Issue
Block a user