Skip to content

Commit

Permalink
Avoid deprecated forHostWithLedgerIdDiscovery in quickstart-java
Browse files Browse the repository at this point in the history
fixes #9319

changelog_begin
changelog_end
  • Loading branch information
cocreature committed Apr 6, 2021
1 parent e84a94e commit f5769cb
Showing 1 changed file with 1 addition and 2 deletions.
Expand Up @@ -40,8 +40,7 @@ public static void main(String[] args) {
int restport = Integer.valueOf(args[3]);

// Create a client object to access services on the ledger.
DamlLedgerClient client =
DamlLedgerClient.forHostWithLedgerIdDiscovery(ledgerhost, ledgerport, Optional.empty());
DamlLedgerClient client = DamlLedgerClient.newBuilder(ledgerhost, ledgerport).build();

// Connects to the ledger and runs initial validation.
client.connect();
Expand Down

0 comments on commit f5769cb

Please sign in to comment.