modify 'freshest' freshness window to be 5s, add typeutils test for status -> api edits

This commit is contained in:
kim 2024-12-16 16:53:35 +00:00
commit a2d2443103
6 changed files with 240 additions and 10 deletions

View file

@ -66,7 +66,7 @@ var (
// causing loads of dereferencing calls.
Fresh = util.Ptr(FreshnessWindow(5 * time.Minute))
// 10 seconds.
// 5 seconds.
//
// Freshest is useful when you want an
// immediately up to date model of something
@ -74,7 +74,7 @@ var (
//
// Be careful using this one; it can cause
// lots of unnecessary traffic if used unwisely.
Freshest = util.Ptr(FreshnessWindow(10 * time.Second))
Freshest = util.Ptr(FreshnessWindow(5 * time.Second))
)
// Dereferencer wraps logic and functionality for doing dereferencing