mirror of
https://github.com/go-micro/go-micro.git
synced 2024-12-24 10:07:04 +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