Переглянути джерело

Clean up the constants in 'libcontainerd' that are no longer in use

Signed-off-by: Yanqiang Miao <miao.yanqiang@zte.com.cn>

update

Signed-off-by: Yanqiang Miao <miao.yanqiang@zte.com.cn>
Yanqiang Miao 8 роки тому
батько
коміт
1ad989559f
2 змінених файлів з 7 додано та 10 видалено
  1. 0 1
      libcontainerd/remote_linux.go
  2. 7 9
      libcontainerd/types.go

+ 0 - 1
libcontainerd/remote_linux.go

@@ -32,7 +32,6 @@ import (
 
 const (
 	maxConnectionRetryCount      = 3
-	connectionRetryDelay         = 3 * time.Second
 	containerdHealthCheckTimeout = 3 * time.Second
 	containerdShutdownTimeout    = 15 * time.Second
 	containerdBinary             = "docker-containerd"

+ 7 - 9
libcontainerd/types.go

@@ -9,15 +9,13 @@ import (
 
 // State constants used in state change reporting.
 const (
-	StateStart        = "start-container"
-	StatePause        = "pause"
-	StateResume       = "resume"
-	StateExit         = "exit"
-	StateRestore      = "restore"
-	StateStartProcess = "start-process"
-	StateExitProcess  = "exit-process"
-	StateOOM          = "oom" // fake state
-	stateLive         = "live"
+	StateStart       = "start-container"
+	StatePause       = "pause"
+	StateResume      = "resume"
+	StateExit        = "exit"
+	StateRestore     = "restore"
+	StateExitProcess = "exit-process"
+	StateOOM         = "oom" // fake state
 )
 
 // CommonStateInfo contains the state info common to all platforms.