mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-08 11:04:56 -04:00
remove dead transaction persist code (#5622)
this hasn't done anything for years
This commit is contained in:
parent
9481707a52
commit
a6a776f3d8
4 changed files with 1 additions and 69 deletions
|
@ -63,8 +63,6 @@ class TransactionManager(object):
|
|||
len(edus),
|
||||
)
|
||||
|
||||
logger.debug("TX [%s] Persisting transaction...", destination)
|
||||
|
||||
transaction = Transaction.create_new(
|
||||
origin_server_ts=int(self.clock.time_msec()),
|
||||
transaction_id=txn_id,
|
||||
|
@ -76,9 +74,6 @@ class TransactionManager(object):
|
|||
|
||||
self._next_txn_id += 1
|
||||
|
||||
yield self._transaction_actions.prepare_to_send(transaction)
|
||||
|
||||
logger.debug("TX [%s] Persisted transaction", destination)
|
||||
logger.info(
|
||||
"TX [%s] {%s} Sending transaction [%s]," " (PDUs: %d, EDUs: %d)",
|
||||
destination,
|
||||
|
@ -118,10 +113,6 @@ class TransactionManager(object):
|
|||
|
||||
logger.info("TX [%s] {%s} got %d response", destination, txn_id, code)
|
||||
|
||||
yield self._transaction_actions.delivered(transaction, code, response)
|
||||
|
||||
logger.debug("TX [%s] {%s} Marked as delivered", destination, txn_id)
|
||||
|
||||
if code == 200:
|
||||
for e_id, r in response.get("pdus", {}).items():
|
||||
if "error" in r:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue