Skip to content

Commit

Permalink
Merge pull request #623 from luraproject/fix_basic_parser
Browse files Browse the repository at this point in the history
fix cachettl type
  • Loading branch information
kpacha authored Nov 8, 2022
2 parents 0c28aad + bd4d49d commit acf6b01
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions config/parser.go
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ type parseableEndpointConfig struct {
Backend []*parseableBackend `json:"backend"`
ConcurrentCalls int `json:"concurrent_calls"`
Timeout string `json:"timeout"`
CacheTTL int `json:"cache_ttl"`
CacheTTL string `json:"cache_ttl"`
QueryString []string `json:"input_query_strings"`
ExtraConfig *ExtraConfig `json:"extra_config,omitempty"`
HeadersToPass []string `json:"input_headers"`
Expand All @@ -253,7 +253,7 @@ func (p *parseableEndpointConfig) normalize() *EndpointConfig {
Method: p.Method,
ConcurrentCalls: p.ConcurrentCalls,
Timeout: parseDuration(p.Timeout),
CacheTTL: time.Duration(p.CacheTTL) * time.Second,
CacheTTL: parseDuration(p.CacheTTL),
QueryString: p.QueryString,
HeadersToPass: p.HeadersToPass,
OutputEncoding: p.OutputEncoding,
Expand Down

0 comments on commit acf6b01

Please sign in to comment.