From 33ee61575f2fc15c5a85c3fdbb3823a0cd22d25d Mon Sep 17 00:00:00 2001 From: tobi <31960611+tsmethurst@users.noreply.github.com> Date: Mon, 27 Nov 2023 16:39:44 +0100 Subject: [bugfix] Don't copy ptr fields in caches (#2386) --- internal/db/instance.go | 3 +++ 1 file changed, 3 insertions(+) (limited to 'internal/db/instance.go') 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 -- cgit v1.2.3