Currently, calling the spammer with a specific TPS parameter is not working: the spammer keeps sending 1000 TPS even if i call:
curl localhost:8080/spammer?cmd=start&tps=5
It looks that request.Tps is always read as equal to ZERO, even if a tps=20 parameters is sent through the GET request.
Probably, the convertion from STRING to INT of the TPS parameter in the GET request is missing (or not working?).
I did a test in order to see what happens if i attach a word instead of a number to the TPS parameter:
curl localhost:8080/spammer?cmd=start&tps=test
Currently, calling the spammer with a specific TPS parameter is not working: the spammer keeps sending 1000 TPS even if i call:
curl localhost:8080/spammer?cmd=start&tps=5
It looks that request.Tps is always read as equal to ZERO, even if a tps=20 parameters is sent through the GET request. Probably, the convertion from STRING to INT of the TPS parameter in the GET request is missing (or not working?).
I did a test in order to see what happens if i attach a word instead of a number to the TPS parameter:
curl localhost:8080/spammer?cmd=start&tps=test
The node start spamming with 1000 TPS.