aboutsummaryrefslogtreecommitdiff
path: root/errors.go
diff options
context:
space:
mode:
authorShulhan <ms@kilabit.info>2021-03-21 15:38:14 +0700
committerShulhan <ms@kilabit.info>2021-03-21 15:45:33 +0700
commit04ea6f8bb0aea5fcb40c2720d45aa6bc0570a967 (patch)
tree56471c7d42894c924e296d02c92608072ec0c145 /errors.go
parent524962c1c8e26cec26fa356719ed990a4a4c82f1 (diff)
downloadgorankusu-04ea6f8bb0aea5fcb40c2720d45aa6bc0570a967.tar.xz
all: rename loadTestingResult to AttackResult
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
}