Fix components' setup (#26182)

Signed-off-by: longjiquan <jiquan.long@zilliz.com>
pull/26191/head pkg/v0.0.1
Jiquan Long 2023-08-09 14:33:15 +08:00 committed by GitHub
parent 6472a50349
commit fb5d809599
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -109,7 +109,9 @@ func runComponent[T component](ctx context.Context,
panic(err)
}
wg.Done()
_ = role.Run()
if err := role.Run(); err != nil {
panic(err)
}
runWg.Done()
}()
wg.Wait()