1
0
mirror of https://github.com/go-task/task.git synced 2025-05-13 22:16:31 +02:00

rename const

This commit is contained in:
Valentin Maerten 2025-04-23 10:44:21 +02:00
parent c8ff248999
commit c8a3ecc7fa
No known key found for this signature in database
GPG Key ID: 2F8E54DDF815C341
3 changed files with 4 additions and 3 deletions

View File

@ -102,7 +102,7 @@ func init() {
reader := taskrc.NewReader()
config, _ := reader.Read(node)
expiry := getDurationValue(config.Remote.Expiry, "REMOTE_EXPIRY", 0)
expiry := getDurationValue(config.Remote.CacheExpiry, "REMOTE_CACHE_EXPIRY", 0)
experiments.ParseWithConfig(dir, config)
// Parse the rest of the flags

View File

@ -12,5 +12,5 @@ type TaskRC struct {
}
type remote struct {
Expiry *time.Duration `yaml:"expiry"`
CacheExpiry *time.Duration `yaml:"cache-expiry"`
}

View File

@ -9,7 +9,8 @@
"additionalProperties": {
"type": "integer"
}
}, "remote": {
},
"remote": {
"type": "object",
"properties": {
"cache-expiry": {