fix: incorrect number of wg.add (#203)

The work-group numbers is unequal to number of go routines spin-up by main function. It's a bug that affects the graceful shutdown. This commit fixed the number of work-group being added.

Signed-off-by: 甜瓜 <42953016+tyut22316@users.noreply.github.com>
This commit is contained in:
甜瓜
2023-04-23 12:49:31 +08:00
committed by GitHub
parent 0e084929ea
commit da418fd3d5

View File

@@ -475,7 +475,7 @@ func run() {
_log.Infow("registered grpc health server")
var wg sync.WaitGroup
wg.Add(5)
wg.Add(6)
go runAPI(&wg, ctx)
go runRPC(&wg, ctx)