diff options
author | 2024-03-06 11:18:57 +0100 | |
---|---|---|
committer | 2024-03-06 11:18:57 +0100 | |
commit | b22e213e15a7bc64773e626d76305bd860e6301c (patch) | |
tree | bdc0f14481b144f8e4e45a380ea3b7cf78490041 /internal/cache/size.go | |
parent | [feature] Filters v1 (#2594) (diff) | |
download | gotosocial-b22e213e15a7bc64773e626d76305bd860e6301c.tar.xz |
[feature/chore] Add Move database functions + cache (#2647)
* [feature/chore] Add Move database functions + cache
* add move mem ratio to envparsing.sh
* update comment
Diffstat (limited to 'internal/cache/size.go')
-rw-r--r-- | internal/cache/size.go | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/internal/cache/size.go b/internal/cache/size.go index f9d88491d..b1c431c55 100644 --- a/internal/cache/size.go +++ b/internal/cache/size.go @@ -460,6 +460,19 @@ func sizeofMention() uintptr { })) } +func sizeofMove() uintptr { + return uintptr(size.Of(>smodel.Move{ + ID: exampleID, + CreatedAt: exampleTime, + UpdatedAt: exampleTime, + AttemptedAt: exampleTime, + SucceededAt: exampleTime, + OriginURI: exampleURI, + TargetURI: exampleURI, + URI: exampleURI, + })) +} + func sizeofNotification() uintptr { return uintptr(size.Of(>smodel.Notification{ ID: exampleID, |