summaryrefslogtreecommitdiff
path: root/vendor/github.com/superseriousbusiness/activity/pub/database.go
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/github.com/superseriousbusiness/activity/pub/database.go')
-rw-r--r--vendor/github.com/superseriousbusiness/activity/pub/database.go7
1 files changed, 1 insertions, 6 deletions
diff --git a/vendor/github.com/superseriousbusiness/activity/pub/database.go b/vendor/github.com/superseriousbusiness/activity/pub/database.go
index 8d3bbd465..5c58c60ce 100644
--- a/vendor/github.com/superseriousbusiness/activity/pub/database.go
+++ b/vendor/github.com/superseriousbusiness/activity/pub/database.go
@@ -19,12 +19,7 @@ type Database interface {
// processes require tight loops acquiring and releasing locks.
//
// Used to ensure race conditions in multiple requests do not occur.
- Lock(c context.Context, id *url.URL) error
- // Unlock makes the lock for the object at the specified id available.
- // If an error is returned, the lock must have still been freed.
- //
- // Used to ensure race conditions in multiple requests do not occur.
- Unlock(c context.Context, id *url.URL) error
+ Lock(c context.Context, id *url.URL) (unlock func(), err error)
// InboxContains returns true if the OrderedCollection at 'inbox'
// contains the specified 'id'.
//