mirror of
https://github.com/jwetzell/showbridge-go.git
synced 2026-08-13 02:13:39 +00:00
go fix
This commit is contained in:
@@ -116,7 +116,7 @@ func BenchmarkStringDecode(b *testing.B) {
|
||||
|
||||
count := 0
|
||||
for b.Loop() {
|
||||
_, err := processorInstance.Process(b.Context(), common.WrappedPayload{Payload: []byte(fmt.Sprintf("%d", count))})
|
||||
_, err := processorInstance.Process(b.Context(), common.WrappedPayload{Payload: fmt.Appendf(nil, "%d", count)})
|
||||
if err != nil {
|
||||
b.Fatalf("string.decode processing failed: %s", err)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user