summaryrefslogtreecommitdiff
path: root/internal/cache
diff options
context:
space:
mode:
authorLibravatar Daenney <daenney@users.noreply.github.com>2025-04-26 15:34:10 +0200
committerLibravatar tobi <tobi.smethurst@protonmail.com>2025-05-05 11:55:15 +0200
commit27edfccf7dc4f7ad329dabfb12fa75e547ecdd40 (patch)
treedc881cc1c7cfa98df19d503e4d17ca3a15f27c26 /internal/cache
parent[chore] Set up Github to be a mirror (diff)
downloadgotosocial-27edfccf7dc4f7ad329dabfb12fa75e547ecdd40.tar.xz
[feature] Move to code.superseriousbusiness.org
Diffstat (limited to 'internal/cache')
-rw-r--r--internal/cache/cache.go8
-rw-r--r--internal/cache/db.go8
-rw-r--r--internal/cache/domain/domain_test.go2
-rw-r--r--internal/cache/headerfilter/filter.go4
-rw-r--r--internal/cache/invalidate.go4
-rw-r--r--internal/cache/size.go10
-rw-r--r--internal/cache/util.go2
-rw-r--r--internal/cache/visibility.go4
8 files changed, 21 insertions, 21 deletions
diff --git a/internal/cache/cache.go b/internal/cache/cache.go
index 7844c03f8..3fd9b4593 100644
--- a/internal/cache/cache.go
+++ b/internal/cache/cache.go
@@ -20,11 +20,11 @@ package cache
import (
"time"
+ "code.superseriousbusiness.org/gotosocial/internal/cache/headerfilter"
+ "code.superseriousbusiness.org/gotosocial/internal/config"
+ "code.superseriousbusiness.org/gotosocial/internal/gtserror"
+ "code.superseriousbusiness.org/gotosocial/internal/log"
"codeberg.org/gruf/go-cache/v3/ttl"
- "github.com/superseriousbusiness/gotosocial/internal/cache/headerfilter"
- "github.com/superseriousbusiness/gotosocial/internal/config"
- "github.com/superseriousbusiness/gotosocial/internal/gtserror"
- "github.com/superseriousbusiness/gotosocial/internal/log"
)
type Caches struct {
diff --git a/internal/cache/db.go b/internal/cache/db.go
index 82cd9ac5f..31e78f0a5 100644
--- a/internal/cache/db.go
+++ b/internal/cache/db.go
@@ -20,11 +20,11 @@ package cache
import (
"sync/atomic"
+ "code.superseriousbusiness.org/gotosocial/internal/cache/domain"
+ "code.superseriousbusiness.org/gotosocial/internal/config"
+ "code.superseriousbusiness.org/gotosocial/internal/gtsmodel"
+ "code.superseriousbusiness.org/gotosocial/internal/log"
"codeberg.org/gruf/go-structr"
- "github.com/superseriousbusiness/gotosocial/internal/cache/domain"
- "github.com/superseriousbusiness/gotosocial/internal/config"
- "github.com/superseriousbusiness/gotosocial/internal/gtsmodel"
- "github.com/superseriousbusiness/gotosocial/internal/log"
)
type DBCaches struct {
diff --git a/internal/cache/domain/domain_test.go b/internal/cache/domain/domain_test.go
index 974425b7c..a3cbbca78 100644
--- a/internal/cache/domain/domain_test.go
+++ b/internal/cache/domain/domain_test.go
@@ -21,7 +21,7 @@ import (
"errors"
"testing"
- "github.com/superseriousbusiness/gotosocial/internal/cache/domain"
+ "code.superseriousbusiness.org/gotosocial/internal/cache/domain"
)
func TestCache(t *testing.T) {
diff --git a/internal/cache/headerfilter/filter.go b/internal/cache/headerfilter/filter.go
index 96b6e757f..afab0b3f7 100644
--- a/internal/cache/headerfilter/filter.go
+++ b/internal/cache/headerfilter/filter.go
@@ -22,8 +22,8 @@ import (
"net/http"
"sync/atomic"
- "github.com/superseriousbusiness/gotosocial/internal/gtsmodel"
- "github.com/superseriousbusiness/gotosocial/internal/headerfilter"
+ "code.superseriousbusiness.org/gotosocial/internal/gtsmodel"
+ "code.superseriousbusiness.org/gotosocial/internal/headerfilter"
)
// Cache provides a means of caching headerfilter.Filters in
diff --git a/internal/cache/invalidate.go b/internal/cache/invalidate.go
index 949238ec6..3512bb51e 100644
--- a/internal/cache/invalidate.go
+++ b/internal/cache/invalidate.go
@@ -18,8 +18,8 @@
package cache
import (
- "github.com/superseriousbusiness/gotosocial/internal/gtsmodel"
- "github.com/superseriousbusiness/gotosocial/internal/util"
+ "code.superseriousbusiness.org/gotosocial/internal/gtsmodel"
+ "code.superseriousbusiness.org/gotosocial/internal/util"
)
// Below are cache invalidation hooks between other caches,
diff --git a/internal/cache/size.go b/internal/cache/size.go
index 9a30d5f08..2d9acc7ba 100644
--- a/internal/cache/size.go
+++ b/internal/cache/size.go
@@ -23,13 +23,13 @@ import (
"time"
"unsafe"
+ "code.superseriousbusiness.org/gotosocial/internal/ap"
+ "code.superseriousbusiness.org/gotosocial/internal/config"
+ "code.superseriousbusiness.org/gotosocial/internal/gtsmodel"
+ "code.superseriousbusiness.org/gotosocial/internal/id"
+ "code.superseriousbusiness.org/gotosocial/internal/util"
"codeberg.org/gruf/go-cache/v3/simple"
"github.com/DmitriyVTitov/size"
- "github.com/superseriousbusiness/gotosocial/internal/ap"
- "github.com/superseriousbusiness/gotosocial/internal/config"
- "github.com/superseriousbusiness/gotosocial/internal/gtsmodel"
- "github.com/superseriousbusiness/gotosocial/internal/id"
- "github.com/superseriousbusiness/gotosocial/internal/util"
)
const (
diff --git a/internal/cache/util.go b/internal/cache/util.go
index ceb053e34..783fc2e24 100644
--- a/internal/cache/util.go
+++ b/internal/cache/util.go
@@ -20,8 +20,8 @@ package cache
import (
"errors"
+ "code.superseriousbusiness.org/gotosocial/internal/db"
errorsv2 "codeberg.org/gruf/go-errors/v2"
- "github.com/superseriousbusiness/gotosocial/internal/db"
)
// SentinelError is an error that can be returned and checked against to indicate a non-permanent
diff --git a/internal/cache/visibility.go b/internal/cache/visibility.go
index a424ca5ac..63927cf08 100644
--- a/internal/cache/visibility.go
+++ b/internal/cache/visibility.go
@@ -18,9 +18,9 @@
package cache
import (
+ "code.superseriousbusiness.org/gotosocial/internal/config"
+ "code.superseriousbusiness.org/gotosocial/internal/log"
"codeberg.org/gruf/go-structr"
- "github.com/superseriousbusiness/gotosocial/internal/config"
- "github.com/superseriousbusiness/gotosocial/internal/log"
)
type VisibilityCache struct {