Fix components' setup (#26182) (#26183)

Signed-off-by: longjiquan <jiquan.long@zilliz.com>
This commit is contained in:
Jiquan Long 2023-08-16 20:24:19 +08:00 committed by GitHub
parent 24347454a9
commit 657deb8957
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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