From 1bf6608ae1f846a9610cf3fa406812d6b5db215b Mon Sep 17 00:00:00 2001 From: Travis Ralston <travis+github@t2bot.io> Date: Sat, 6 Nov 2021 08:04:08 -0600 Subject: [PATCH] Remove ancient test code --- matrix/federation.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/matrix/federation.go b/matrix/federation.go index ea92bb63..b4bd6cda 100644 --- a/matrix/federation.go +++ b/matrix/federation.go @@ -58,9 +58,6 @@ func getFederationBreaker(hostname string) *circuit.Breaker { // Note: URL lookups are not covered by the breaker because otherwise it might never close. func GetServerApiUrl(hostname string) (string, string, error) { logrus.Info("Getting server API URL for " + hostname) - if hostname == "federation.matrix.org" { - return "https://oauth.t2host.io", "oauth.t2host.io", nil - } // Check to see if we've cached this hostname at all setupCache() -- GitLab