优化服务启动流程,修复后端配置组件名称和vue组件名称不一致无法缓存问题

This commit is contained in:
孟帅
2023-05-29 11:54:51 +08:00
parent b353728009
commit bfcbfe55c2
18 changed files with 290 additions and 272 deletions

View File

@@ -96,14 +96,14 @@ func NewClient(config *ClientConfig) (client *Client, err error) {
if config.ConnectInterval <= 0 {
client.connectInterval = 5 * time.Second
client.Logger.Debugf(client.Ctx, "invalid connectInterval, reset to %v", client.connectInterval)
//client.Logger.Debugf(client.Ctx, "invalid connectInterval, reset to %v", client.connectInterval)
} else {
client.connectInterval = config.ConnectInterval
}
if config.Timeout <= 0 {
client.timeout = 10 * time.Second
client.Logger.Debugf(client.Ctx, "invalid timeout, reset to %v", client.timeout)
//client.Logger.Debugf(client.Ctx, "invalid timeout, reset to %v", client.timeout)
} else {
client.timeout = config.Timeout
}