summary refs log tree commit diff
path: root/synapse/federation/persistence.py (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Remove `log_function` and its uses (#11761)Richard van der Hoff2022-01-181-3/+0
| | | | | | | I've never found this terribly useful. I think it was added in the early days of Synapse, without much thought as to what would actually be useful to log, and has just been cargo-culted ever since. Rather, it tends to clutter up debug logs with useless information.
* Add most of the missing type hints to `synapse.federation`. (#11483)Patrick Cloke2021-12-021-1/+3
| | | This skips a few methods which are difficult to type.
* Convert Transaction and Edu object to attrs (#10542)Patrick Cloke2021-08-061-2/+2
| | | | | Instead of wrapping the JSON into an object, this creates concrete instances for Transaction and Edu. This allows for improved type hints and simplified code.
* 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>`
* Update black, and run auto formatting over the codebase (#9381)Eric Eastwood2021-02-161-4/+2
| | | | | | | - 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
* Stop sub-classing object (#8249)Patrick Cloke2020-09-041-1/+1
|
* Convert additional database code to async/await. (#8195)Patrick Cloke2020-08-281-8/+11
|
* Convert calls of async database methods to async (#8166)Patrick Cloke2020-08-271-7/+9
|
* Clean up newline quote marks around the codebase (#6362)Andrew Morgan2019-11-211-2/+2
|
* remove dead transaction persist code (#5622)Richard van der Hoff2019-07-051-32/+0
| | | | this hasn't done anything for years
* Move logging utilities out of the side drawer of util/ and into logging/ (#5606)Amber Brown2019-07-041-1/+1
|
* Run Black. (#5482)Amber Brown2019-06-201-11/+4
|
* Fix origin handling for pushed transactionsRichard van der Hoff2018-09-051-4/+4
| | | | | Use the actual origin for push transactions, rather than whatever the remote server claimed.
* run isortAmber Brown2018-07-091-3/+2
|
* copyrightsMatthew Hodgson2016-01-071-1/+1
|
* And use buffer(...) there as wellErik Johnston2015-05-051-1/+1
|
* Use buffer(...) when inserting into bytea columnErik Johnston2015-05-051-3/+1
|
* Don't unfreeze when using FreezeEvent.get_dict, as we are using a ↵Erik Johnston2015-02-111-3/+4
| | | | JSONEncoder that understands FrozenDict
* Blunty replace json with simplejsonErik Johnston2015-02-111-1/+1
|
* Update copyright noticesMark Haines2015-01-061-1/+1
|
* Remove unused importsErik Johnston2014-11-041-2/+0
|
* For now, don't store txn -> pdu mappings.Erik Johnston2014-11-031-1/+0
|
* Remove PDU tables.Erik Johnston2014-10-311-70/+0
|
* SPEC-7: Rename 'ts' to 'origin_server_ts'Mark Haines2014-10-171-1/+1
|
* fix the copyright holder from matrix.org to OpenMarket Ltd, as matrix.org ↵Matthew Hodgson2014-09-031-1/+1
| | | | hasn't been incorporated in time for launch.
* Remove unused populate_previous_pdusMark Haines2014-08-271-19/+0
|
* Use store.persist_event rather than ↵Mark Haines2014-08-261-19/+0
| | | | pdu_actions.persist_outgoing/pdu_actions.persist_received
* Move pdu and event persistence into a single persist_event functionMark Haines2014-08-261-28/+2
|
* when we're talking about backfilling data in federation, call it backfilling ↵Matthew Hodgson2014-08-131-3/+3
| | | | - not pagination.
* add in whitespace after copyright statements to improve legibilityMatthew Hodgson2014-08-131-0/+1
|
* Reference Matrix Home Servermatrix.org2014-08-121-0/+240