Skip to content

Commit

Permalink
Update vertx-config-redis that was still using some deprecated methods
Browse files Browse the repository at this point in the history
  • Loading branch information
vietj committed Mar 16, 2023
1 parent 6ceb237 commit a8592e0
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Binary file added .DS_Store
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ public void before(TestContext should) {
rule.vertx(),
new RedisOptions().setConnectionString("redis://" + redis.getContainerIpAddress() + ":" + redis.getFirstMappedPort() + "?client=tester"));

client.connect(onConnect -> {
client.connect().onComplete(onConnect -> {
should.assertTrue(onConnect.succeeded());
onConnect.result().close();
before.complete();
Expand Down Expand Up @@ -142,7 +142,7 @@ public void getWithConfiguredKey(TestContext tc) throws Exception {

private void writeSomeConf(String key, Handler<AsyncResult<Void>> handler) {
RedisAPI api = RedisAPI.api(client);
api.hmset(Arrays.asList(key, "some-key", "some-value"), ar -> {
api.hmset(Arrays.asList(key, "some-key", "some-value")).onComplete(ar -> {
if (ar.succeeded()) {
handler.handle(Future.succeededFuture());
} else {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ public void before(TestContext should) {
rule.vertx(),
new RedisOptions().setConnectionString("redis://" + redis.getContainerIpAddress() + ":" + redis.getFirstMappedPort() + "?client=tester"));

client.connect(onConnect -> {
client.connect().onComplete(onConnect -> {
should.assertTrue(onConnect.succeeded());
onConnect.result().close();
before.complete();
Expand Down Expand Up @@ -142,7 +142,7 @@ public void getWithConfiguredKey(TestContext tc) throws Exception {

private void writeSomeConf(String key, Handler<AsyncResult<Void>> handler) {
RedisAPI api = RedisAPI.api(client);
api.hmset(Arrays.asList(key, "some-key", "some-value"), ar -> {
api.hmset(Arrays.asList(key, "some-key", "some-value")).onComplete(ar -> {
if (ar.succeeded()) {
handler.handle(Future.succeededFuture());
} else {
Expand Down

0 comments on commit a8592e0

Please sign in to comment.