summaryrefslogtreecommitdiff
path: root/internal/federation/federatingdb/lock.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/federation/federatingdb/lock.go')
-rw-r--r--internal/federation/federatingdb/lock.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/federation/federatingdb/lock.go b/internal/federation/federatingdb/lock.go
index 5353aea91..a7b3f9950 100644
--- a/internal/federation/federatingdb/lock.go
+++ b/internal/federation/federatingdb/lock.go
@@ -33,6 +33,6 @@ import (
// processes require tight loops acquiring and releasing locks.
//
// Used to ensure race conditions in multiple requests do not occur.
-func (f *federatingDB) Lock(c context.Context, id *url.URL) (func(), error) {
- return f.state.FedLocks.Lock("federatingDB " + id.String()), nil // id should NEVER be nil.
+func (f *DB) Lock(c context.Context, id *url.URL) (func(), error) {
+ return f.state.FedLocks.Lock("fdb:" + id.String()), nil // id should NEVER be nil.
}