From 614ab12733b991dbea9d1f7fa311a98072558727 Mon Sep 17 00:00:00 2001 From: kim <89579420+NyaaaWhatsUpDoc@users.noreply.github.com> Date: Fri, 2 Sep 2022 10:56:33 +0100 Subject: [performance] use GetAccountByUsernameDomain() for local account lookups to rely on cache (#793) Signed-off-by: kim Signed-off-by: kim --- internal/db/account.go | 3 --- 1 file changed, 3 deletions(-) (limited to 'internal/db/account.go') diff --git a/internal/db/account.go b/internal/db/account.go index 155bd666c..54e24784f 100644 --- a/internal/db/account.go +++ b/internal/db/account.go @@ -42,9 +42,6 @@ type Account interface { // UpdateAccount updates one account by ID. UpdateAccount(ctx context.Context, account *gtsmodel.Account) (*gtsmodel.Account, Error) - // GetLocalAccountByUsername returns an account on this instance by its username. - GetLocalAccountByUsername(ctx context.Context, username string) (*gtsmodel.Account, Error) - // GetAccountFaves fetches faves/likes created by the target accountID. GetAccountFaves(ctx context.Context, accountID string) ([]*gtsmodel.StatusFave, Error) -- cgit v1.2.3