fix(ci): 修正分布式实现的 staticcheck 错误
迁移 CLI 不再遮蔽 BeginMigration 的错误,拒绝启动时正确返回失败。规范节点批准错误文案和归档 HTTP 状态常量;tar.Reader 已将旧普通文件类型归一化,无需引用已弃用常量。 验证:CI 固定版本 staticcheck 全量通过;cmd/felis、archivetransfer、backup、distributed 的 go test -race 通过。
This commit is contained in:
4 files changed
+15
-15
No files matched your search
@@ -275,7 +275,7 @@ func approveNode(ctx context.Context, cl client.Client, cs kubernetes.Interface,
|
||||
for _, endpoint := range endpoints {
|
||||
c, err := net.DialTimeout("tcp", endpoint, 5*time.Second)
|
||||
if err != nil {
|
||||
return fmt.Errorf("Velocity host cannot dial backend Service %s: %w", endpoint, err)
|
||||
return fmt.Errorf("velocity host cannot dial backend Service %s: %w", endpoint, err)
|
||||
}
|
||||
c.Close()
|
||||
}
|
||||
@@ -321,7 +321,7 @@ func approveNode(ctx context.Context, cl client.Client, cs kubernetes.Interface,
|
||||
return err
|
||||
}
|
||||
if len(game.Spec.Ingress) == 0 {
|
||||
return fmt.Errorf("Velocity ingress policy is not configured")
|
||||
return fmt.Errorf("velocity ingress policy is not configured")
|
||||
}
|
||||
prevGame := game.DeepCopy()
|
||||
for _, cidr := range observed {
|
||||
|
||||
Reference in new issue
Block a user