Commit f020630
authored
fix: Fix handling of TTL in Go server (#3232)
Fix handling of TTL in Go server
According to the FeatureView docstring, 'A ttl of 0 indicates that this group of features lives forever.'
However, the Go feature server doesn't currently respect this, returning OUTSIDE_MAX_AGE for FeatureViews
that have a TTL of 0. This fixes that issue by always returning false for checkOutsideTtl if the TTL
is 0.
Signed-off-by: William Horton <william.horton@grandrounds.com>
Signed-off-by: William Horton <william.horton@grandrounds.com>1 parent e117082 commit f020630
1 file changed
+3
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
633 | 633 | | |
634 | 634 | | |
635 | 635 | | |
| 636 | + | |
| 637 | + | |
| 638 | + | |
636 | 639 | | |
637 | 640 | | |
638 | 641 | | |
| |||
0 commit comments