feat(deploy): 在线更新 - 新增后台检查、强制备份迁移与失败自动回退
This commit is contained in:
1 parent
8227921c68
commit
694cb974fb
60 files changed
+4124
-93
No files matched your search
@@ -317,6 +317,13 @@ func (s *Service) ValidateRuntime() error {
|
||||
return s.runtimeErr
|
||||
}
|
||||
|
||||
func (s *Service) Close() error {
|
||||
if s.coordinator == nil || s.coordinator.redis == nil {
|
||||
return nil
|
||||
}
|
||||
return s.coordinator.redis.Close()
|
||||
}
|
||||
|
||||
func (s *Service) AllowRequest(ctx context.Context, key string, limit int, window time.Duration) (bool, error) {
|
||||
if s.coordinator == nil {
|
||||
return false, errors.New("运行时协调器未初始化")
|
||||
|
||||
Reference in new issue
Block a user