env added
This commit is contained in:
parent
13ebb27335
commit
56309cafb9
2 changed files with 3 additions and 0 deletions
|
|
@ -29,6 +29,7 @@ type GrpcConfig struct {
|
|||
type TasksConfig struct {
|
||||
RetryCount int
|
||||
RetryMinutes int
|
||||
TaskTimeout int
|
||||
}
|
||||
|
||||
type OriginEnabled struct {
|
||||
|
|
@ -62,6 +63,7 @@ func NewConfig() *Config {
|
|||
TasksCfg: TasksConfig{
|
||||
RetryCount: getEnvInt("TASK_RETRY_COUNT", 3),
|
||||
RetryMinutes: getEnvInt("TASK_RETRY_MINUTES", 5),
|
||||
TaskTimeout: getEnvInt("TASK_TIMEOUT_MINUTES", 5),
|
||||
},
|
||||
|
||||
OriginEnabled: OriginEnabled{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue