mirror of
https://github.com/element-hq/synapse.git
synced 2026-05-13 17:13:11 +00:00
Indirect tuple conversion
This commit is contained in:
@@ -81,6 +81,9 @@ class RelationPaginationToken(object):
|
||||
def to_string(self):
|
||||
return "%d-%d" % (self.topological, self.stream)
|
||||
|
||||
def as_tuple(self):
|
||||
return attr.astuple(self)
|
||||
|
||||
|
||||
@attr.s
|
||||
class AggregationPaginationToken(object):
|
||||
@@ -108,6 +111,9 @@ class AggregationPaginationToken(object):
|
||||
def to_string(self):
|
||||
return "%d-%d" % (self.count, self.stream)
|
||||
|
||||
def as_tuple(self):
|
||||
return attr.astuple(self)
|
||||
|
||||
|
||||
class RelationsWorkerStore(SQLBaseStore):
|
||||
@cached(tree=True)
|
||||
|
||||
Reference in New Issue
Block a user