Skip to content

Commit

Permalink
Merge pull request #19 from dilanSachi/add-load-test
Browse files Browse the repository at this point in the history
Update load test jar file
  • Loading branch information
dilanSachi authored Aug 24, 2023
2 parents c84321d + d0ba58f commit 6b06588
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Binary file modified load-tests/simple_publisher_subscriber/scripts/load_test.jar
Binary file not shown.
6 changes: 3 additions & 3 deletions load-tests/simple_publisher_subscriber/src/main.bal
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ function publishMessages() {
startedTime = time:utcNow();
// Publishing messages for 1 hour
int endingTimeInSecs = startedTime[0] + 3600;
mqtt:Client|mqtt:Error 'client = new(MQTT_CLUSTER, uuid:createType1AsString());
mqtt:Client|mqtt:Error 'client = new (MQTT_CLUSTER, uuid:createType1AsString());
if 'client is mqtt:Error {
log:printError("Error while creating the client.", 'client);
lock {
Expand All @@ -97,7 +97,7 @@ function publishMessages() {
errorCount += 1;
}
} else {
sentCount +=1;
sentCount += 1;
}
runtime:sleep(0.1);
}
Expand All @@ -110,7 +110,7 @@ function publishMessages() {
}
finished = true;
} else {
sentCount +=1;
sentCount += 1;
}
}

Expand Down

0 comments on commit 6b06588

Please sign in to comment.