mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-12-30 02:36:16 -06:00
modify 'freshest' freshness window to be 5s, add typeutils test for status -> api edits
This commit is contained in:
parent
c8a465f9a0
commit
a2d2443103
6 changed files with 240 additions and 10 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue