mirror of
https://github.com/grassrootseconomics/cic-custodial.git
synced 2024-11-21 13:56:47 +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