Browse Source

More detailed comments

Matt Bolt 6 years ago
parent
commit
6e96fb623d
1 changed files with 2 additions and 2 deletions
  1. 2 2
      costmodel/router.go

+ 2 - 2
costmodel/router.go

@@ -341,7 +341,7 @@ func (a *Accesses) AggregateCostModel(w http.ResponseWriter, r *http.Request, ps
 	}
 	}
 	klog.Infof("REMOTE ENABLED: %t", remoteEnabled)
 	klog.Infof("REMOTE ENABLED: %t", remoteEnabled)
 
 
-	// Use Thanos Client if it exists and remote != false
+	// Use Thanos Client if it exists (enabled) and remote flag set
 	var pClient prometheusClient.Client
 	var pClient prometheusClient.Client
 	if remote != "false" && a.ThanosClient != nil {
 	if remote != "false" && a.ThanosClient != nil {
 		pClient = a.ThanosClient
 		pClient = a.ThanosClient
@@ -421,7 +421,7 @@ func (a *Accesses) CostDataModelRange(w http.ResponseWriter, r *http.Request, ps
 		remoteEnabled = true
 		remoteEnabled = true
 	}
 	}
 
 
-	// Use Thanos Client if it exists and remote != false
+	// Use Thanos Client if it exists (enabled) and remote flag set
 	var pClient prometheusClient.Client
 	var pClient prometheusClient.Client
 	if remote != "false" && a.ThanosClient != nil {
 	if remote != "false" && a.ThanosClient != nil {
 		pClient = a.ThanosClient
 		pClient = a.ThanosClient