reid 2 лет назад
Родитель
Сommit
5b1de0483a
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      config/config.go

+ 2 - 2
config/config.go

@@ -120,11 +120,11 @@ func UpdateConf(values map[string]interface{}) error {
 func UpdateContainerState(name string, containerState structs.ContainerState) {
 func UpdateContainerState(name string, containerState structs.ContainerState) {
 	contMutex.Lock()
 	contMutex.Lock()
 	defer contMutex.Unlock()
 	defer contMutex.Unlock()
-	GSContainers[name] = state
+	GSContainers[name] = containerState
 }
 }
 
 
 // get the current container state
 // get the current container state
-func GetContainerState() structs.SysConfig {
+func GetContainerState() structs.ContainerState {
 	contMutex.Lock()
 	contMutex.Lock()
 	defer contMutex.Unlock()
 	defer contMutex.Unlock()
 	return GSContainers
 	return GSContainers