mirror of
https://mau.dev/mautrix/go.git
synced 2026-03-14 14:25:53 +01:00
bridgev2: make Bridge.Start() take a context
This commit is contained in:
parent
e675a3c09c
commit
04f4c2dcc6
1 changed files with 2 additions and 2 deletions
|
|
@ -107,8 +107,8 @@ func (e DBUpgradeError) Unwrap() error {
|
|||
return e.Err
|
||||
}
|
||||
|
||||
func (br *Bridge) Start() error {
|
||||
ctx := br.Log.WithContext(context.Background())
|
||||
func (br *Bridge) Start(ctx context.Context) error {
|
||||
ctx = br.Log.WithContext(ctx)
|
||||
err := br.StartConnectors(ctx)
|
||||
if err != nil {
|
||||
return err
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue