Remove 'limit' param from get_repl_stream_updates API

there doesn't seem to be much point in passing this limit all around, since
both sides agree it's meant to be 100.
This commit is contained in:
Richard van der Hoff 2020-04-23 15:31:25 +01:00
parent 2e3b9a0fcb
commit 23b28266ac
2 changed files with 8 additions and 9 deletions

View file

@ -193,10 +193,7 @@ def make_http_update_function(hs, stream_name: str) -> UpdateFunction:
from_token: int, upto_token: int, limit: int
) -> StreamUpdateResult:
result = await client(
stream_name=stream_name,
from_token=from_token,
upto_token=upto_token,
limit=limit,
stream_name=stream_name, from_token=from_token, upto_token=upto_token,
)
return result["updates"], result["upto_token"], result["limited"]