Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions audit-service/src/conf/config.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"http.port": 36000,
"url": "jdbc:hsqldb:file:audit-db;shutdown=true",
"driverclass" : "org.hsqldb.jdbcDriver"
}
Original file line number Diff line number Diff line change
Expand Up @@ -53,12 +53,11 @@ public void start(Future<Void> future) {
readySingle.doOnSuccess(consumer -> {
// on success we set the handler that will store message in the database
consumer.handler(message -> storeInDatabase(message.body()));
}).subscribe(consumer -> {
// complete the verticle start with a success
future.complete();
}, error -> {
// signal a verticle start failure
future.fail(error);
}).doOnSuccess(consumer -> {
// on success publish the audit endpoint for dashboard to consume
rxPublishHttpEndpoint("audit", "localhost", config().getInteger("http.port", 36000))
.doOnSuccess(future::complete)
.doOnError(future::fail);
});
}

Expand Down