Revert "Fix #8518 (sync requests being cached wrongly on timeout) (#9358)"

This reverts commit f5c93fc993.

This is being backed out due to a regression (#9507) and additional
review feedback being provided.
This commit is contained in:
Patrick Cloke 2021-03-02 09:43:34 -05:00
parent 7f5d753d06
commit aee10768d8
3 changed files with 3 additions and 35 deletions

View file

@ -277,9 +277,8 @@ class SyncHandler:
user_id = sync_config.user.to_string()
await self.auth.check_auth_blocking(requester=requester)
res = await self.response_cache.wrap_conditional(
res = await self.response_cache.wrap(
sync_config.request_key,
lambda result: since_token != result.next_batch,
self._wait_for_sync_for_user,
sync_config,
since_token,