Skip to content

Commit

Permalink
Add context to UpdateBridgeInfo
Browse files Browse the repository at this point in the history
  • Loading branch information
tulir committed Jan 4, 2024
1 parent d014d56 commit 8863170
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bridge/bridge.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ type Portal interface {
MainIntent() *appservice.IntentAPI

ReceiveMatrixEvent(user User, evt *event.Event)
UpdateBridgeInfo()
UpdateBridgeInfo(ctx context.Context)
}

type MembershipHandlingPortal interface {
Expand Down Expand Up @@ -720,7 +720,7 @@ func (br *Bridge) ResendBridgeInfo() {
}
br.ZLog.Info().Msg("Re-sending bridge info state event to all portals")
for _, portal := range br.Child.GetAllIPortals() {
portal.UpdateBridgeInfo()
portal.UpdateBridgeInfo(context.TODO())
}
br.ZLog.Info().Msg("Finished re-sending bridge info state events")
}
Expand Down

0 comments on commit 8863170

Please sign in to comment.