bridgev2: make Bridge.Start() take a context (#368)
Some checks failed
Go / Lint (latest) (push) Has been cancelled
Go / Build (old, libolm) (push) Has been cancelled
Go / Build (latest, libolm) (push) Has been cancelled
Go / Build (old, goolm) (push) Has been cancelled
Go / Build (latest, goolm) (push) Has been cancelled

This commit is contained in:
Adam Van Ymeren 2025-04-09 07:46:03 -07:00 committed by GitHub
commit 0fcb552c27
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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