aboutsummaryrefslogtreecommitdiff
path: root/errors.go
diff options
context:
space:
mode:
Diffstat (limited to 'errors.go')
-rw-r--r--errors.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/errors.go b/errors.go
index faf009c..6351ab4 100644
--- a/errors.go
+++ b/errors.go
@@ -12,14 +12,14 @@ import (
libhttp "github.com/shuLhan/share/lib/http"
)
-func errAttackConflict(ltr *loadTestingResult) error {
+func errAttackConflict(ar *AttackResult) error {
res := &libhttp.EndpointResponse{
E: liberrors.E{
Code: http.StatusConflict,
Message: "another attack is already running",
Name: "ERR_ATTACK_CONFLICT",
},
- Data: ltr,
+ Data: ar,
}
return res
}