mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2024-12-21 01:44:18 -05:00
Indirect tuple conversion
This commit is contained in:
parent
95f3fcda3c
commit
2c662ddde4
@ -81,6 +81,9 @@ class RelationPaginationToken(object):
|
|||||||
def to_string(self):
|
def to_string(self):
|
||||||
return "%d-%d" % (self.topological, self.stream)
|
return "%d-%d" % (self.topological, self.stream)
|
||||||
|
|
||||||
|
def as_tuple(self):
|
||||||
|
return attr.astuple(self)
|
||||||
|
|
||||||
|
|
||||||
@attr.s
|
@attr.s
|
||||||
class AggregationPaginationToken(object):
|
class AggregationPaginationToken(object):
|
||||||
@ -108,6 +111,9 @@ class AggregationPaginationToken(object):
|
|||||||
def to_string(self):
|
def to_string(self):
|
||||||
return "%d-%d" % (self.count, self.stream)
|
return "%d-%d" % (self.count, self.stream)
|
||||||
|
|
||||||
|
def as_tuple(self):
|
||||||
|
return attr.astuple(self)
|
||||||
|
|
||||||
|
|
||||||
class RelationsWorkerStore(SQLBaseStore):
|
class RelationsWorkerStore(SQLBaseStore):
|
||||||
@cached(tree=True)
|
@cached(tree=True)
|
||||||
|
Loading…
Reference in New Issue
Block a user