summaryrefslogtreecommitdiff
path: root/internal/api/s2s
diff options
context:
space:
mode:
authorLibravatar kim <89579420+NyaaaWhatsUpDoc@users.noreply.github.com>2022-11-20 16:33:49 +0000
committerLibravatar GitHub <noreply@github.com>2022-11-20 16:33:49 +0000
commit5d55e8d920cd5969e5cff567ee88afb13f40a1b9 (patch)
tree7ad27cd4ae90a124a8d5ec04e7ff5ac9a1d27d26 /internal/api/s2s
parent[bugfix] fix possible infinite loop on federated AP profile delete (#1091) (diff)
downloadgotosocial-5d55e8d920cd5969e5cff567ee88afb13f40a1b9.tar.xz
[performance] add account block DB cache and remove block query joins (#1085)
* add account block DB cache and remove reliance on relational joins * actually include cache key arguments... * add a PutBlock() method which also updates the block cache, update tests accordingly * use `PutBlock` instead of `Put(ctx, block)` * add + use functions for deleting + invalidating blocks Signed-off-by: kim <grufwub@gmail.com> Co-authored-by: tsmethurst <tobi.smethurst@protonmail.com>
Diffstat (limited to 'internal/api/s2s')
-rw-r--r--internal/api/s2s/user/inboxpost_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/api/s2s/user/inboxpost_test.go b/internal/api/s2s/user/inboxpost_test.go
index 364ad336f..3821406be 100644
--- a/internal/api/s2s/user/inboxpost_test.go
+++ b/internal/api/s2s/user/inboxpost_test.go
@@ -153,7 +153,7 @@ func (suite *InboxPostTestSuite) TestPostUnblock() {
TargetAccountID: blockedAccount.ID,
}
- err = suite.db.Put(context.Background(), dbBlock)
+ err = suite.db.PutBlock(context.Background(), dbBlock)
suite.NoError(err)
asBlock, err := suite.tc.BlockToAS(context.Background(), dbBlock)