From 6ca225b078b7666de95895b2d645887b0c07e9be Mon Sep 17 00:00:00 2001 From: "jesse.tang" <1430482733@qq.com> Date: Thu, 18 Aug 2022 10:58:56 +0800 Subject: [PATCH] add notes by not used defer (#2291) --- app.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app.go b/app.go index 0a5afabc1..e3d81ffb1 100644 --- a/app.go +++ b/app.go @@ -101,7 +101,7 @@ func (a *App) Run() error { }) wg.Add(1) eg.Go(func() error { - wg.Done() + wg.Done() // here is to ensure server start has begun running before register, so defer is not needed return srv.Start(NewContext(a.opts.ctx, a)) }) }