mirror of
https://github.com/go-micro/go-micro.git
synced 2024-11-24 08:02:32 +02:00
fix(service): profile stop error scope
This commit is contained in:
parent
0a91ba7b5d
commit
68a6425ad8
@ -149,9 +149,8 @@ func (s *service) Run() (err error) {
|
||||
}
|
||||
|
||||
defer func() {
|
||||
err = s.opts.Profile.Stop()
|
||||
if err != nil {
|
||||
logger.Log(log.ErrorLevel, err)
|
||||
if nerr := s.opts.Profile.Stop(); nerr != nil {
|
||||
logger.Log(log.ErrorLevel, nerr)
|
||||
}
|
||||
}()
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user