add notes by not used defer (#2291)

pull/2293/head
jesse.tang 2 years ago committed by GitHub
parent ba72230477
commit 6ca225b078
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      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))
})
}

Loading…
Cancel
Save