diff options
author | David Robertson <davidr@element.io> | 2022-06-07 15:24:11 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-07 15:24:11 +0100 |
commit | f30bcbd84a651de59777b2a749850f6ca56ce3f0 (patch) | |
tree | 8a66fdf82df9a061ca9664b214d23145ee178e1b /synapse/federation | |
parent | Reduce amount of state we pull out when attempting to send catchup PDUs. (#12... (diff) | |
download | synapse-f30bcbd84a651de59777b2a749850f6ca56ce3f0.tar.xz |
Fix Synapse git info missing in version strings (#12973)
Diffstat (limited to 'synapse/federation')
-rw-r--r-- | synapse/federation/transport/server/federation.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/synapse/federation/transport/server/federation.py b/synapse/federation/transport/server/federation.py index 7dfb890661..f7884bfbe0 100644 --- a/synapse/federation/transport/server/federation.py +++ b/synapse/federation/transport/server/federation.py @@ -24,7 +24,6 @@ from typing import ( Union, ) -from matrix_common.versionstring import get_distribution_version_string from typing_extensions import Literal from synapse.api.constants import EduTypes @@ -42,6 +41,7 @@ from synapse.http.servlet import ( parse_strings_from_args, ) from synapse.types import JsonDict +from synapse.util import SYNAPSE_VERSION from synapse.util.ratelimitutils import FederationRateLimiter if TYPE_CHECKING: @@ -622,7 +622,7 @@ class FederationVersionServlet(BaseFederationServlet): { "server": { "name": "Synapse", - "version": get_distribution_version_string("matrix-synapse"), + "version": SYNAPSE_VERSION, } }, ) |