From 8626308dac5fafb7458d8d55f98032b6913e1c2a Mon Sep 17 00:00:00 2001 From: Robert Swain Date: Mon, 22 May 2017 16:41:46 +0200 Subject: [PATCH] mediaapi/writers/download: getMatrixUrls -> getMatrixURLs --- .../matrix-org/dendrite/mediaapi/writers/download.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/github.com/matrix-org/dendrite/mediaapi/writers/download.go b/src/github.com/matrix-org/dendrite/mediaapi/writers/download.go index 7eae64620..910341dee 100644 --- a/src/github.com/matrix-org/dendrite/mediaapi/writers/download.go +++ b/src/github.com/matrix-org/dendrite/mediaapi/writers/download.go @@ -247,7 +247,7 @@ func (r *downloadRequest) respondFromLocalFile(w http.ResponseWriter, absBasePat } func (r *downloadRequest) createRemoteRequest() (*http.Response, *util.JSONResponse) { - urls := getMatrixUrls(r.MediaMetadata.Origin) + urls := getMatrixURLs(r.MediaMetadata.Origin) r.Logger.WithField("URL", urls[0]).Info("Connecting to remote") @@ -504,7 +504,7 @@ func (r *downloadRequest) respondFromRemoteFile(w http.ResponseWriter, absBasePa // Given a matrix server name, attempt to discover URLs to contact the server // on. -func getMatrixUrls(serverName gomatrixserverlib.ServerName) []string { +func getMatrixURLs(serverName gomatrixserverlib.ServerName) []string { _, srvs, err := net.LookupSRV("matrix", "tcp", string(serverName)) if err != nil { return []string{"https://" + string(serverName) + ":8448"}