[bugfix] Don't copy ptr fields in caches (#2386)

This commit is contained in:
tobi
2023-11-27 16:39:44 +01:00
committed by GitHub
parent 0bb9b72334
commit 33ee61575f
12 changed files with 469 additions and 109 deletions

View File

@ -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