Closed MoonBow-1 closed 1 month ago
Refactor the Client so that it's declared in Main.java, and passed to proper classes Get the endpoint URI from the CLI arguments and pass it to the Client instead of hard-coded one
These have been done, will look into the behavior when packaged next
Currently waiting for opportunity to test SSL cert behavior / requirement
Usage in Main.java:
final Client client = new Client(line.getOptionValue("endpoint"), configuration.token);
...
for (final PromiseList promiseList : promiseLists) {
promiseList.parse();
promiseList.sendPromises(captureMetaMap, client);
}
...
This issue is not relevant anymore, had a discussion about this with the architect last week
Description Currently the Client is created each time a request is sent, consuming resources and possibly disregarding the benefits of connection pooling.
TODO:
[ ] Refactor error response handling so that it accepts string instead of the preformed JSON format