Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Fixed audit service discovery issue #40

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
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