Skip to content

Commit

Permalink
Remove spurious param from hello-world example.
Browse files Browse the repository at this point in the history
Also, some of the other examples had parse errors. Fixed now.
  • Loading branch information
bittrance authored and rigazilla committed Sep 5, 2024
1 parent 06412a3 commit c2e82ab
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
...
// ...
}

})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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'
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion documentation/asciidoc/topics/code_examples/hello-world.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
Original file line number Diff line number Diff line change
@@ -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.
}
Expand Down

0 comments on commit c2e82ab

Please sign in to comment.