Skip to content

Commit

Permalink
remove non needed public getClient
Browse files Browse the repository at this point in the history
  • Loading branch information
scrocquesel committed Mar 4, 2023
1 parent fd4d19d commit e4659ed
Showing 1 changed file with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -459,12 +459,8 @@ public void addClient(String channel, RabbitMQClient client) {
clients.put(channel, client);
}

public RabbitMQClient getClient(String channel) {
return clients.get(channel);
}

public void establishQueue(String channel, RabbitMQConnectorIncomingConfiguration ic) {
final RabbitMQClient client = getClient(channel);
final RabbitMQClient client = clients.get(channel);
client.getDelegate().addConnectionEstablishedCallback(promise -> {
establishQueue(client, ic).subscribe().with((ignored) -> promise.complete(), promise::fail);
});
Expand Down

0 comments on commit e4659ed

Please sign in to comment.