Achilleas Tzenetopoulos 5 年之前
父节点
当前提交
cf89f71acc
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      kubernetes-v1.15.4/pkg/scheduler/algorithm/priorities/custom_resource_allocation.go

+ 2 - 2
kubernetes-v1.15.4/pkg/scheduler/algorithm/priorities/custom_resource_allocation.go

@@ -94,13 +94,13 @@ func customResourceScorer(nodeName string) int64 {
 
 	//Access the Database
 	DBstring := cfg.Database.Username + ":" + cfg.Database.Password + "@tcp(" + cfg.Server.Host + ":" + cfg.Server.Port + ")/" + cfg.Database.Name
-	db, err := sql.Open(cfg.Database.Type, DBstring)
+	_, err := sql.Open(cfg.Database.Type, DBstring)
 	if err != nil {
 		panic(err.Error())
 	}
 
 	//TODO InfluxDB
-	c, err := client.NewHttpClient(client.HTTPConfig{
+	c, err := client.NewHTTPClient(client.HTTPConfig{
 		Addr: "http://" + cfg.Server.Host + ":" + cfg.Server.Port + "",
 	})
 	if err != nil {