summary refs log tree commit diff
path: root/synapse/storage/databases/main/pusher.py (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Remove redundant "coding: utf-8" lines (#9786)Jonathan de Jong2021-04-141-1/+0
| | | | | | | Part of #9744 Removes all redundant `# -*- coding: utf-8 -*-` lines from files, as python 3 automatically reads source code as utf-8 now. `Signed-off-by: Jonathan de Jong <jonathan@automatia.nl>`
* Import HomeServer from the proper module. (#9665)Patrick Cloke2021-03-231-1/+1
|
* Make deleting stale pushers a background update (#9536)Erik Johnston2021-03-031-0/+52
|
* Fix SQL delta file taking a long time to run (#9516)Erik Johnston2021-03-021-0/+53
| | | | Fixes #9504
* Ensure pushers are deleted for deactivated accounts (#9285)Erik Johnston2021-02-251-0/+43
|
* Update black, and run auto formatting over the codebase (#9381)Eric Eastwood2021-02-161-2/+5
| | | | | | | - Update black version to the latest - Run black auto formatting over the codebase - Run autoformatting according to [`docs/code_style.md `](https://github.com/matrix-org/synapse/blob/80d6dc9783aa80886a133756028984dbf8920168/docs/code_style.md) - Update `code_style.md` docs around installing black to use the correct version
* Don't error if deleting a non-existent pusher. (#9121)Patrick Cloke2021-01-251-1/+3
|
* Ensure we store pusher data as text (#9117)Richard van der Hoff2021-01-151-3/+2
| | | | | I don't think there's any need to use canonicaljson here. Fixes: #4475.
* Convert internal pusher dicts to attrs classes. (#8940)Patrick Cloke2020-12-161-36/+57
| | | This improves type hinting and should use less memory.
* Add `DeferredCache.get_immediate` method (#8568)Richard van der Hoff2020-10-191-1/+1
| | | | | | | | | | | * Add `DeferredCache.get_immediate` method A bunch of things that are currently calling `DeferredCache.get` are only really interested in the result if it's completed. We can optimise and simplify this case. * Remove unused 'default' parameter to DeferredCache.get() * another get_immediate instance
* Use `async with` for ID gens (#8383)Erik Johnston2020-09-231-2/+2
| | | This will allow us to hit the DB after we've finished using the generated stream ID.
* Make StreamIdGen `get_next` and `get_next_mult` async (#8161)Erik Johnston2020-08-251-2/+2
| | | | This is mainly so that `StreamIdGenerator` and `MultiWriterIdGenerator` will have the same interface, allowing them to be used interchangeably.
* Convert pusher databases to async/await. (#8075)Patrick Cloke2020-08-141-49/+46
|
* Convert misc database code to async (#8087)Patrick Cloke2020-08-141-6/+3
|
* Rename database classes to make some sense (#8033)Erik Johnston2020-08-051-0/+356