Skip to content

Commit

Permalink
revert demo update
Browse files Browse the repository at this point in the history
  • Loading branch information
Piotr committed Mar 4, 2025
1 parent 8af2740 commit 4041a02
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions modes/demo.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,11 +78,6 @@ func GenerateRandomData(jsonFormat bool, numPerSec int, ch chan models.Message,
}

func generateTextRandomData() string {
b := gofakeit.Bool()
bs := "false"
if b {
bs = "true"
}
return strings.Join([]string{
time.Now().Format("15:04:05.0000"),
strconv.Itoa(int(time.Now().UnixMilli())),
Expand All @@ -95,7 +90,6 @@ func generateTextRandomData() string {
gofakeit.UserAgent(),
gofakeit.HTTPMethod(),
utils.PickRandom[string](correlationIds),
bs,
}, " | ")
}

Expand All @@ -112,7 +106,6 @@ func generateJsonRandomData() string {
"ua": gofakeit.UserAgent(),
"method": gofakeit.HTTPMethod(),
"correlation_id": utils.PickRandom[string](correlationIds),
"active": gofakeit.Bool(),
})

return string(val)
Expand Down

0 comments on commit 4041a02

Please sign in to comment.