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/bundb/instance.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'internal/db/bundb/instance.go') diff --git a/internal/db/bundb/instance.go b/internal/db/bundb/instance.go index 6fec3f2fe..567a44ee2 100644 --- a/internal/db/bundb/instance.go +++ b/internal/db/bundb/instance.go @@ -173,14 +173,14 @@ func (i *instanceDB) getInstance(ctx context.Context, lookup string, dbQuery fun } // Further populate the instance fields where applicable. - if err := i.populateInstance(ctx, instance); err != nil { + if err := i.PopulateInstance(ctx, instance); err != nil { return nil, err } return instance, nil } -func (i *instanceDB) populateInstance(ctx context.Context, instance *gtsmodel.Instance) error { +func (i *instanceDB) PopulateInstance(ctx context.Context, instance *gtsmodel.Instance) error { var ( err error errs = gtserror.NewMultiError(2) -- cgit v1.2.3