mirror of
https://mau.dev/mautrix/go.git
synced 2026-03-14 14:25:53 +01:00
appservice: remove unnecessary parameter in ping
Some checks failed
Some checks failed
This commit is contained in:
parent
6f370cc3bb
commit
71b994b3fd
2 changed files with 3 additions and 3 deletions
|
|
@ -19,7 +19,7 @@ import (
|
|||
"maunium.net/go/mautrix"
|
||||
)
|
||||
|
||||
func (intent *IntentAPI) EnsureAppserviceConnection(ctx context.Context, appserviceID string) {
|
||||
func (intent *IntentAPI) EnsureAppserviceConnection(ctx context.Context) {
|
||||
var pingResp *mautrix.RespAppservicePing
|
||||
var txnID string
|
||||
var retryCount int
|
||||
|
|
@ -27,7 +27,7 @@ func (intent *IntentAPI) EnsureAppserviceConnection(ctx context.Context, appserv
|
|||
const maxRetries = 6
|
||||
for {
|
||||
txnID = intent.TxnID()
|
||||
pingResp, err = intent.AppservicePing(ctx, appserviceID, txnID)
|
||||
pingResp, err = intent.AppservicePing(ctx, intent.as.Registration.ID, txnID)
|
||||
if err == nil {
|
||||
break
|
||||
}
|
||||
|
|
|
|||
|
|
@ -343,7 +343,7 @@ func (br *Connector) ensureConnection(ctx context.Context) {
|
|||
return
|
||||
}
|
||||
|
||||
br.Bot.EnsureAppserviceConnection(ctx, br.Config.AppService.ID)
|
||||
br.Bot.EnsureAppserviceConnection(ctx)
|
||||
}
|
||||
|
||||
func (br *Connector) fetchMediaConfig(ctx context.Context) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue