mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-02 11:56:07 -04:00
Time how long calls to _get_destination_retry_timings take
This commit is contained in:
parent
52b2c6c9c7
commit
03a501456c
2 changed files with 64 additions and 12 deletions
|
@ -19,6 +19,8 @@ from collections import namedtuple
|
|||
|
||||
from twisted.internet import defer
|
||||
|
||||
from synapse.util.logutils import time_function
|
||||
|
||||
import logging
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
@ -228,6 +230,7 @@ class TransactionStore(SQLBaseStore):
|
|||
"get_destination_retry_timings",
|
||||
self._get_destination_retry_timings, destination)
|
||||
|
||||
@time_function
|
||||
def _get_destination_retry_timings(cls, txn, destination):
|
||||
query = DestinationsTable.select_statement("destination = ?")
|
||||
txn.execute(query, (destination,))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue