diff options
author | 2023-11-27 16:39:44 +0100 | |
---|---|---|
committer | 2023-11-27 15:39:44 +0000 | |
commit | 33ee61575f2fc15c5a85c3fdbb3823a0cd22d25d (patch) | |
tree | 5e887d5ea5b828c84a1a9eb386bbaa07ad63a420 /internal/db/instance.go | |
parent | [docs] Add docs about memory requirements and swap (#2385) (diff) | |
download | gotosocial-33ee61575f2fc15c5a85c3fdbb3823a0cd22d25d.tar.xz |
[bugfix] Don't copy ptr fields in caches (#2386)
Diffstat (limited to 'internal/db/instance.go')
-rw-r--r-- | internal/db/instance.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/internal/db/instance.go b/internal/db/instance.go index 408522b65..3b9588fef 100644 --- a/internal/db/instance.go +++ b/internal/db/instance.go @@ -40,6 +40,9 @@ type Instance interface { // GetInstanceByID returns the instance entry corresponding to the given id, if it exists. GetInstanceByID(ctx context.Context, id string) (*gtsmodel.Instance, error) + // PopulateInstance populates the struct pointers on the given instance. + PopulateInstance(ctx context.Context, instance *gtsmodel.Instance) error + // PutInstance inserts the given instance into the database. PutInstance(ctx context.Context, instance *gtsmodel.Instance) error |