mirror of
https://github.com/go-micro/go-micro.git
synced 2025-11-29 21:47:44 +02:00
feat: add test framework & refactor RPC server (#2579)
Co-authored-by: Rene Jochum <rene@jochum.dev>
This commit is contained in:
@@ -113,7 +113,7 @@ func (s *service) Stop() error {
|
||||
err = fn()
|
||||
}
|
||||
|
||||
if err = s.opts.Server.Stop(); err != nil {
|
||||
if err := s.opts.Server.Stop(); err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
@@ -144,6 +144,7 @@ func (s *service) Run() (err error) {
|
||||
if err = s.opts.Profile.Start(); err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
defer func() {
|
||||
err = s.opts.Profile.Stop()
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user