🐛 Fixed memleak

This commit is contained in:
2022-10-11 15:33:50 +02:00
parent 23a0c77d56
commit b9cda51c0f
6 changed files with 14 additions and 88 deletions

View File

@@ -5,9 +5,9 @@ export default function () {
for (let i = 0; i < 250; i++) {
var rand = Math.random()
if (rand > 0.5) {
http.get(`http://127.0.0.1:8080/get/${random_string(1)}`);
http.get(`http://127.0.0.1:8082/get/${random_string(1)}`);
} else {
http.post(`http://127.0.0.1:8080/set/${random_string(1)}`, random_string(5));
http.post(`http://127.0.0.1:8082/set/${random_string(1)}`, random_string(5));
}
}
};