fix: data racing when running boomer

This commit is contained in:
debugtalk
2021-11-16 18:20:25 +08:00
parent 3bee273b63
commit b81ce9c95e
4 changed files with 19 additions and 13 deletions

View File

@@ -13,12 +13,6 @@ import (
"github.com/httprunner/hrp/builtin"
)
func parseStep(step IStep, config *TConfig) *TStep {
tStep := step.ToStruct()
tStep.Request.URL = buildURL(config.BaseURL, tStep.Request.URL)
return tStep
}
func buildURL(baseURL, stepURL string) string {
uConfig, err := url.Parse(baseURL)
if err != nil {