From c2e82ab5c0266a1446c34dd1271258edb13d4508 Mon Sep 17 00:00:00 2001 From: Bittrance Date: Thu, 5 Sep 2024 11:46:04 +0200 Subject: [PATCH] Remove spurious param from hello-world example. Also, some of the other examples had parse errors. Fixed now. --- .../topics/code_examples/connection-xsite-cluster-switch.js | 6 +++--- .../asciidoc/topics/code_examples/encryption-private-key.js | 2 +- documentation/asciidoc/topics/code_examples/hello-world.js | 2 +- .../topics/code_examples/register-event-listener.js | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/documentation/asciidoc/topics/code_examples/connection-xsite-cluster-switch.js b/documentation/asciidoc/topics/code_examples/connection-xsite-cluster-switch.js index c042881..f4c718e 100644 --- a/documentation/asciidoc/topics/code_examples/connection-xsite-cluster-switch.js +++ b/documentation/asciidoc/topics/code_examples/connection-xsite-cluster-switch.js @@ -19,17 +19,17 @@ connected.then(function (client) { switchToB.then(function(switchSucceed) { if (switchSucceed) { - ... + // ... } - ... + // ... var switchToDefault = client.getTopologyInfo().switchToDefaultCluster(); switchToDefault.then(function(switchSucceed) { if (switchSucceed) { - ... + // ... } }) diff --git a/documentation/asciidoc/topics/code_examples/encryption-private-key.js b/documentation/asciidoc/topics/code_examples/encryption-private-key.js index eb6d311..eca51c0 100644 --- a/documentation/asciidoc/topics/code_examples/encryption-private-key.js +++ b/documentation/asciidoc/topics/code_examples/encryption-private-key.js @@ -6,7 +6,7 @@ var connected = infinispan.client({port: 11222, host: '127.0.0.1'}, clientAuth: { key: 'privkey.pem', passphrase: 'secret', - cert:ssl 'cert.pem' + cert: 'cert.pem' } } } diff --git a/documentation/asciidoc/topics/code_examples/hello-world.js b/documentation/asciidoc/topics/code_examples/hello-world.js index 2d4c415..c0e2e94 100644 --- a/documentation/asciidoc/topics/code_examples/hello-world.js +++ b/documentation/asciidoc/topics/code_examples/hello-world.js @@ -6,7 +6,7 @@ var connected = infinispan.client( {port: 11222, host: '127.0.0.1'}, { cacheName: 'myCache', - clientIntelligence: 'BASIC', + topologyUpdates: false, authentication: { enabled: true, saslMechanism: 'DIGEST-MD5', diff --git a/documentation/asciidoc/topics/code_examples/register-event-listener.js b/documentation/asciidoc/topics/code_examples/register-event-listener.js index 7065bbc..231ac75 100644 --- a/documentation/asciidoc/topics/code_examples/register-event-listener.js +++ b/documentation/asciidoc/topics/code_examples/register-event-listener.js @@ -1,7 +1,7 @@ var infinispan = require('infinispan'); var connected = infinispan.client( - {port: 11222, host: '127.0.0.1'} + {port: 11222, host: '127.0.0.1'}, { // Configure client connections with authentication and encryption here. }