mirror of
https://github.com/element-hq/synapse
synced 2024-09-11 01:55:11 +00:00
Fix typo in NullSource.get_pagination_rows. Remove unused import.
This commit is contained in:
parent
6ac298f2f1
commit
f3f32addca
1 changed files with 1 additions and 2 deletions
|
@ -15,7 +15,6 @@
|
||||||
|
|
||||||
from twisted.internet import defer
|
from twisted.internet import defer
|
||||||
|
|
||||||
from synapse.api.constants import Membership
|
|
||||||
from synapse.types import StreamToken
|
from synapse.types import StreamToken
|
||||||
|
|
||||||
|
|
||||||
|
@ -32,7 +31,7 @@ class NullSource(object):
|
||||||
return defer.succeed(0)
|
return defer.succeed(0)
|
||||||
|
|
||||||
def get_pagination_rows(self, user, pagination_config, key):
|
def get_pagination_rows(self, user, pagination_config, key):
|
||||||
return defer.succeed(([], from_token))
|
return defer.succeed(([], pagination_config.from_token))
|
||||||
|
|
||||||
|
|
||||||
class RoomEventSource(object):
|
class RoomEventSource(object):
|
||||||
|
|
Loading…
Reference in a new issue