aboutsummaryrefslogtreecommitdiff
path: root/federationsender/api/query.go
diff options
context:
space:
mode:
authorKegsay <kegan@matrix.org>2020-05-21 14:40:13 +0100
committerGitHub <noreply@github.com>2020-05-21 14:40:13 +0100
commit24d8df664c21fa8bd68d80b5585a496e264c410a (patch)
tree0a176d6dfd7f81522c5739b53313366b552b0ce1 /federationsender/api/query.go
parent3fdb045116c9cd2f2a3badfebec0645d0381bacb (diff)
Fix #897 and shuffle directory around (#1054)
* Fix #897 and shuffle directory around * Update find-lint * goimports Co-authored-by: Neil Alexander <neilalexander@users.noreply.github.com>
Diffstat (limited to 'federationsender/api/query.go')
-rw-r--r--federationsender/api/query.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/federationsender/api/query.go b/federationsender/api/query.go
index 7a58cc86..bf58d5cc 100644
--- a/federationsender/api/query.go
+++ b/federationsender/api/query.go
@@ -3,8 +3,8 @@ package api
import (
"context"
- commonHTTP "github.com/matrix-org/dendrite/common/http"
"github.com/matrix-org/dendrite/federationsender/types"
+ internalHTTP "github.com/matrix-org/dendrite/internal/http"
"github.com/matrix-org/gomatrixserverlib"
"github.com/opentracing/opentracing-go"
@@ -36,7 +36,7 @@ func (h *httpFederationSenderInternalAPI) QueryJoinedHostsInRoom(
defer span.Finish()
apiURL := h.federationSenderURL + FederationSenderQueryJoinedHostsInRoomPath
- return commonHTTP.PostJSON(ctx, span, h.httpClient, apiURL, request, response)
+ return internalHTTP.PostJSON(ctx, span, h.httpClient, apiURL, request, response)
}
// QueryJoinedHostServerNamesRequest is a request to QueryJoinedHostServerNames
@@ -59,5 +59,5 @@ func (h *httpFederationSenderInternalAPI) QueryJoinedHostServerNamesInRoom(
defer span.Finish()
apiURL := h.federationSenderURL + FederationSenderQueryJoinedHostServerNamesInRoomPath
- return commonHTTP.PostJSON(ctx, span, h.httpClient, apiURL, request, response)
+ return internalHTTP.PostJSON(ctx, span, h.httpClient, apiURL, request, response)
}