Explorar o código

Fix ConvertAPIHostToNMHost

gabrielseibel1 hai 1 ano
pai
achega
c02eb3a8a7
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      models/api_host.go

+ 1 - 1
models/api_host.go

@@ -100,7 +100,7 @@ func (a *ApiHost) ConvertAPIHostToNMHost(currentHost *Host) *Host {
 	if h.PersistentKeepalive == 0 {
 	if h.PersistentKeepalive == 0 {
 		h.PersistentKeepalive = time.Duration(a.PersistentKeepalive)
 		h.PersistentKeepalive = time.Duration(a.PersistentKeepalive)
 	} else {
 	} else {
-		h.PersistentKeepalive = currentHost.PersistentKeepalive
+		h.PersistentKeepalive = time.Duration(a.PersistentKeepalive)
 	}
 	}
 	return &h
 	return &h
 }
 }