diff --git a/src/github.com/matrix-org/dendrite/appservice/query/query.go b/src/github.com/matrix-org/dendrite/appservice/query/query.go index 8237a4dee..9dfb87a82 100644 --- a/src/github.com/matrix-org/dendrite/appservice/query/query.go +++ b/src/github.com/matrix-org/dendrite/appservice/query/query.go @@ -18,7 +18,6 @@ package query import ( "context" - "crypto/tls" "encoding/json" "net/http" "net/url" @@ -69,7 +68,7 @@ func (a *AppServiceQueryAPI) RoomAliasExists( if err != nil { return err } - req := req.WithContent(ctx) + req = req.WithContext(ctx) resp, err := a.HTTPClient.Do(req) if resp != nil { diff --git a/src/github.com/matrix-org/dendrite/appservice/workers/transaction_scheduler.go b/src/github.com/matrix-org/dendrite/appservice/workers/transaction_scheduler.go index 89bf14e97..0330eb9ea 100644 --- a/src/github.com/matrix-org/dendrite/appservice/workers/transaction_scheduler.go +++ b/src/github.com/matrix-org/dendrite/appservice/workers/transaction_scheduler.go @@ -17,7 +17,6 @@ package workers import ( "bytes" "context" - "crypto/tls" "encoding/json" "fmt" "math"