summaryrefslogtreecommitdiff
path: root/internal/cache/size.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/cache/size.go')
-rw-r--r--internal/cache/size.go15
1 files changed, 15 insertions, 0 deletions
diff --git a/internal/cache/size.go b/internal/cache/size.go
index 4ec30fbb7..4c474fa28 100644
--- a/internal/cache/size.go
+++ b/internal/cache/size.go
@@ -19,6 +19,7 @@ package cache
import (
"crypto/rsa"
+ "strings"
"time"
"unsafe"
@@ -320,6 +321,20 @@ func sizeofClient() uintptr {
}))
}
+func sizeofConversation() uintptr {
+ return uintptr(size.Of(&gtsmodel.Conversation{
+ ID: exampleID,
+ CreatedAt: exampleTime,
+ UpdatedAt: exampleTime,
+ AccountID: exampleID,
+ OtherAccountIDs: []string{exampleID, exampleID, exampleID},
+ OtherAccountsKey: strings.Join([]string{exampleID, exampleID, exampleID}, ","),
+ ThreadID: exampleID,
+ LastStatusID: exampleID,
+ Read: util.Ptr(true),
+ }))
+}
+
func sizeofEmoji() uintptr {
return uintptr(size.Of(&gtsmodel.Emoji{
ID: exampleID,