Commit graph

7 commits

Author SHA1 Message Date
Erik Johnston
cbabb312e0
Use async with for ID gens ()
This will allow us to hit the DB after we've finished using the generated stream ID.
2020-09-23 16:11:18 +01:00
Patrick Cloke
8a4a4186de
Simplify super() calls to Python 3 syntax. ()
This converts calls like super(Foo, self) -> super().

Generated with:

    sed -i "" -Ee 's/super\([^\(]+\)/super()/g' **/*.py
2020-09-18 09:56:44 -04:00
Patrick Cloke
5c03134d0f
Convert additional database code to async/await. () 2020-08-28 07:54:27 -04:00
Erik Johnston
2231dffee6
Make StreamIdGen get_next and get_next_mult async ()
This is mainly so that `StreamIdGenerator` and `MultiWriterIdGenerator`
will have the same interface, allowing them to be used interchangeably.
2020-08-25 15:10:08 +01:00
Patrick Cloke
d68e10f308
Convert account data, device inbox, and censor events databases to async/await () 2020-08-12 09:29:06 -04:00
David Vo
4dd27e6d11
Reduce unnecessary whitespace in JSON. () 2020-08-07 08:02:55 -04:00
Erik Johnston
a7bdf98d01
Rename database classes to make some sense () 2020-08-05 21:38:57 +01:00
Renamed from synapse/storage/data_stores/main/deviceinbox.py (Browse further)