From b1fbcb29a1ed5227d3e2d41e2829fa3996c6996d Mon Sep 17 00:00:00 2001 From: liwei1dao Date: Thu, 7 Jul 2022 11:41:28 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A4=84=E7=90=86=E6=9C=8D=E5=8A=A1=E5=81=9C?= =?UTF-8?q?=E6=AD=A2=E6=97=B6=E7=9A=84=E9=94=99=E8=AF=AF=E6=8F=90=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lego/base/rpcx/service.go | 2 -- lego/sys/rpcx/service.go | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/lego/base/rpcx/service.go b/lego/base/rpcx/service.go index 2df101975..f59d47964 100644 --- a/lego/base/rpcx/service.go +++ b/lego/base/rpcx/service.go @@ -8,7 +8,6 @@ import ( "go_dreamfactory/lego/base" "go_dreamfactory/lego/core" "go_dreamfactory/lego/core/cbase" - "go_dreamfactory/lego/sys/cron" "go_dreamfactory/lego/sys/event" "go_dreamfactory/lego/sys/log" "go_dreamfactory/lego/sys/rpcx" @@ -116,7 +115,6 @@ func (this *RPCXService) Destroy() (err error) { if err = rpcx.Stop(); err != nil { return } - cron.Stop() err = this.ServiceBase.Destroy() return } diff --git a/lego/sys/rpcx/service.go b/lego/sys/rpcx/service.go index af8ab64c3..b8ee128d3 100644 --- a/lego/sys/rpcx/service.go +++ b/lego/sys/rpcx/service.go @@ -62,7 +62,7 @@ type Service struct { func (this *Service) Start() (err error) { go func() { if err = this.server.Serve("tcp", this.options.ServiceAddr); err != nil { - this.Errorf("rpcx server exit!") + this.Warnf("rpcx server exit:%v", err) } }() return