rob05c commented on a change in pull request #5467:
URL: https://github.com/apache/trafficcontrol/pull/5467#discussion_r670724764
##########
File path: cache-config/t3cutil/getdatacfg.go
##########
@@ -638,29 +642,55 @@ func GetConfigData(toClient *toreq.TOClient, disableProxy
bool, cacheHostName st
}
return nil
}
- cacheKeyParamsF := func() error {
- defer func(start time.Time) { log.Infof("cacheKeyParamsF took
%v\n", time.Since(start)) }(time.Now())
+
+ cacheKeyConfigParamsF := func() error {
+ defer func(start time.Time) { log.Infof("cacheKeyConfigParamsF
took %v\n", time.Since(start)) }(time.Now())
{
reqHdr := (http.Header)(nil)
if oldCfg != nil {
- reqHdr =
MakeReqHdr(oldCfg.MetaData.CacheKeyParams)
+ reqHdr =
MakeReqHdr(oldCfg.MetaData.CacheKeyConfigParams)
}
- params, reqInf, err :=
toClient.GetConfigFileParameters(atscfg.CacheKeyParameterConfigFile, reqHdr)
+ params, reqInf, err :=
toClient.GetConfigFileParameters("cachekey.config", reqHdr)
Review comment:
Why change the constant to a literal?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]