mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2025-11-02 11:38:02 +00:00
Switch StaticSystemView values to pointers, to support updating
This commit is contained in:
@@ -15,14 +15,14 @@ type SystemView interface {
|
||||
}
|
||||
|
||||
type StaticSystemView struct {
|
||||
DefaultLeaseTTLVal time.Duration
|
||||
MaxLeaseTTLVal time.Duration
|
||||
DefaultLeaseTTLVal *time.Duration
|
||||
MaxLeaseTTLVal *time.Duration
|
||||
}
|
||||
|
||||
func (d *StaticSystemView) DefaultLeaseTTL() time.Duration {
|
||||
return d.DefaultLeaseTTLVal
|
||||
return *d.DefaultLeaseTTLVal
|
||||
}
|
||||
|
||||
func (d *StaticSystemView) MaxLeaseTTL() time.Duration {
|
||||
return d.MaxLeaseTTLVal
|
||||
return *d.MaxLeaseTTLVal
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user