aboutsummaryrefslogtreecommitdiff
path: root/attack_result.go
diff options
context:
space:
mode:
authorShulhan <ms@kilabit.info>2025-02-03 18:22:47 +0700
committerShulhan <ms@kilabit.info>2025-02-03 20:11:07 +0700
commitb28176b259cc8056b4d3fa1088ee68a6d9294583 (patch)
tree2a3b6421736214d819024c02a18416d0e597f357 /attack_result.go
parent327ecf3ee2764cb2a478575735d59d4a37b03a19 (diff)
downloadgorankusu-b28176b259cc8056b4d3fa1088ee68a6d9294583.tar.xz
go.mod: update all dependencies
Diffstat (limited to 'attack_result.go')
-rw-r--r--attack_result.go5
1 files changed, 2 insertions, 3 deletions
diff --git a/attack_result.go b/attack_result.go
index 944ce69..f35a18a 100644
--- a/attack_result.go
+++ b/attack_result.go
@@ -15,7 +15,6 @@ import (
vegeta "github.com/tsenart/vegeta/v12/lib"
- libbytes "git.sr.ht/~shulhan/pakakeh.go/lib/bytes"
"git.sr.ht/~shulhan/pakakeh.go/lib/mlog"
)
@@ -137,7 +136,7 @@ func (ar *AttackResult) finish() (err error) {
return err
}
- ar.TextReport = libbytes.Copy(buf.Bytes())
+ ar.TextReport = bytes.Clone(buf.Bytes())
buf.Reset()
histWriter := vegeta.NewHistogramReporter(ar.hist)
@@ -146,7 +145,7 @@ func (ar *AttackResult) finish() (err error) {
return err
}
- ar.HistReport = libbytes.Copy(buf.Bytes())
+ ar.HistReport = bytes.Clone(buf.Bytes())
ar.metrics = nil
ar.hist = nil