1
0
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:
David Brouwer
2022-10-20 13:00:50 +02:00
committed by GitHub
parent c25dee7c8a
commit a3980c2308
54 changed files with 3703 additions and 2497 deletions

View File

@@ -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 {