diff options
author | Kegsay <kegan@matrix.org> | 2020-05-15 09:41:12 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-15 09:41:12 +0100 |
commit | 2b5052eccfca49e736b39a9879ebde2ab196f6da (patch) | |
tree | ebd43e4ea84cf403a0c1530833a2751faa2d255d /syncapi/storage/interface.go | |
parent | 419ff150d41a3d0de25f0e8e66baf36948bcfbc1 (diff) |
Add Range (#1037)
* Add Range
* Use Range
Diffstat (limited to 'syncapi/storage/interface.go')
-rw-r--r-- | syncapi/storage/interface.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/syncapi/storage/interface.go b/syncapi/storage/interface.go index 22716789..eba008b3 100644 --- a/syncapi/storage/interface.go +++ b/syncapi/storage/interface.go @@ -64,7 +64,7 @@ type Database interface { // Returns a map following the format data[roomID] = []dataTypes // If no data is retrieved, returns an empty map // If there was an issue with the retrieval, returns an error - GetAccountDataInRange(ctx context.Context, userID string, oldPos, newPos types.StreamPosition, accountDataFilterPart *gomatrixserverlib.EventFilter) (map[string][]string, error) + GetAccountDataInRange(ctx context.Context, userID string, r types.Range, accountDataFilterPart *gomatrixserverlib.EventFilter) (map[string][]string, error) // UpsertAccountData keeps track of new or updated account data, by saving the type // of the new/updated data, and the user ID and room ID the data is related to (empty) // room ID means the data isn't specific to any room) |