From bc917a4085f8f6195e70d55b751b08cc5a93059c Mon Sep 17 00:00:00 2001 From: Dominik Süß Date: Fri, 2 Dec 2022 19:40:49 +0100 Subject: [performance]: make s3 urls cacheable (#1194) Implements #864 and should speed up s3 based installations by a lot. With more static urls, we can then also implement #1026 for even better performance when used in conjunction with CDNs --- cmd/gotosocial/action/testrig/testrig.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cmd') diff --git a/cmd/gotosocial/action/testrig/testrig.go b/cmd/gotosocial/action/testrig/testrig.go index 2259f7148..88ac369de 100644 --- a/cmd/gotosocial/action/testrig/testrig.go +++ b/cmd/gotosocial/action/testrig/testrig.go @@ -73,7 +73,7 @@ var Start action.GTSAction = func(ctx context.Context) error { router := testrig.NewTestRouter(dbService) var storageBackend *storage.Driver if os.Getenv("GTS_STORAGE_BACKEND") == "s3" { - storageBackend = testrig.NewS3Storage() + storageBackend, _ = storage.NewS3Storage() } else { storageBackend = testrig.NewInMemoryStorage() } -- cgit v1.2.3