diff --git a/cmd/rpcfetch/apply.go b/cmd/rpcfetch/apply.go index 43e1da4..c8474c6 100644 --- a/cmd/rpcfetch/apply.go +++ b/cmd/rpcfetch/apply.go @@ -60,10 +60,8 @@ type applyState struct { func (s *applyState) replace(t string) string { for k, f := range substitute { t = strings.ReplaceAll(t, "%"+k, f(s)) - go func() { - replCounter.Add(uint64(len(t))) - statusReplaces.SetText(strconv.Itoa(int(replCounter.Load())) + " bytes") - }() + replCounter.Add(uint64(len(t))) + statusReplaces.SetText(strconv.Itoa(int(replCounter.Load())) + " bytes") } return t }