mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-11-13 13:50:37 -05:00
Don't call SQLBaseStore methods from outside stores
This commit is contained in:
parent
3eb15c01d9
commit
c2f525a525
4 changed files with 20 additions and 19 deletions
|
|
@ -542,8 +542,8 @@ def phone_stats_home(hs, stats, stats_process=_stats_process):
|
|||
# Database version
|
||||
#
|
||||
|
||||
stats["database_engine"] = hs.get_datastore().database_engine_name
|
||||
stats["database_server_version"] = hs.get_datastore().get_server_version()
|
||||
stats["database_engine"] = hs.database_engine.module.__name__
|
||||
stats["database_server_version"] = hs.database_engine.server_version
|
||||
logger.info("Reporting stats to %s: %s" % (hs.config.report_stats_endpoint, stats))
|
||||
try:
|
||||
yield hs.get_proxied_http_client().put_json(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue