Revert "优化服务退出流程,增加中间件文档"

This reverts commit c511a2e6b3.
This commit is contained in:
maxbad
2023-05-15 23:15:17 +08:00
parent c981d0b8eb
commit 64ed43b7ca
30 changed files with 98 additions and 336 deletions

View File

@@ -195,9 +195,7 @@ func (client *Client) connect() {
reconnect:
conn := client.dial()
if conn == nil {
if !client.stopFlag {
client.Logger.Debugf(client.Ctx, "client dial failed")
}
client.Logger.Debugf(client.Ctx, "client dial failed")
return
}
@@ -313,11 +311,6 @@ func (client *Client) Stop() {
client.Close()
}
// IsStop 是否已停止
func (client *Client) IsStop() bool {
return client.stopFlag
}
// Destroy 销毁当前连接
func (client *Client) Destroy() {
client.stopCron()