mirror of
https://github.com/matrix-org/dendrite.git
synced 2025-12-16 11:23:11 -06:00
fix lint
This commit is contained in:
parent
c6f49c1e88
commit
2afb26fad3
|
|
@ -17,7 +17,7 @@ type URIToUIDResponse struct {
|
||||||
UserID string `json:"user_id"`
|
UserID string `json:"user_id"`
|
||||||
}
|
}
|
||||||
|
|
||||||
const PathPrefixUnstableThirdPartyUser = "/_matrix/app/unstable/thirdparty/user/"
|
const pathPrefixUnstableThirdPartyUser = "/_matrix/app/unstable/thirdparty/user/"
|
||||||
|
|
||||||
// URIToUID implements `/_matrix/app/r0/user?uri={url_encoded_uri}`, which
|
// URIToUID implements `/_matrix/app/r0/user?uri={url_encoded_uri}`, which
|
||||||
// enables users to contact App Service users directly by taking an encoded
|
// enables users to contact App Service users directly by taking an encoded
|
||||||
|
|
@ -43,7 +43,7 @@ func URIToUID(req *http.Request, cfg config.Dendrite) util.JSONResponse {
|
||||||
// call the applicable application services in parallel
|
// call the applicable application services in parallel
|
||||||
go func(as config.ApplicationService, ids *[]string) {
|
go func(as config.ApplicationService, ids *[]string) {
|
||||||
defer wg.Done()
|
defer wg.Done()
|
||||||
reqURL, err := url.Parse(as.URL + PathPrefixUnstableThirdPartyUser + as.ID +
|
reqURL, err := url.Parse(as.URL + pathPrefixUnstableThirdPartyUser + as.ID +
|
||||||
"?access_token=" + as.HSToken +
|
"?access_token=" + as.HSToken +
|
||||||
"&fields=" + uri)
|
"&fields=" + uri)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue