mirror of
https://github.com/go-micro/go-micro.git
synced 2024-11-30 08:06:40 +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() {
|
defer func() {
|
||||||
err = s.opts.Profile.Stop()
|
if nerr := s.opts.Profile.Stop(); nerr != nil {
|
||||||
if err != nil {
|
logger.Log(log.ErrorLevel, nerr)
|
||||||
logger.Log(log.ErrorLevel, err)
|
|
||||||
}
|
}
|
||||||
}()
|
}()
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user