refactor: remove redis direct references from proxy/admin servers
This commit is contained in:
@ -220,3 +220,11 @@ func NewInterpolatedDuration(d time.Duration) *InterpolatedDuration {
|
||||
id := InterpolatedDuration(d)
|
||||
return &id
|
||||
}
|
||||
|
||||
func Default[T any](value *T, defaultValue *T) *T {
|
||||
if value == nil {
|
||||
return defaultValue
|
||||
}
|
||||
|
||||
return value
|
||||
}
|
||||
|
Reference in New Issue
Block a user