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