Skip to content

Commit

Permalink
fix: set displayName in CreateInstance sample (#1145)
Browse files Browse the repository at this point in the history
Also updated `nodes` to 1 to be consistent with other samples.
  • Loading branch information
skuruppu committed Jun 12, 2020
1 parent 9206e89 commit f9e47d9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions samples/instance.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ async function createInstance(instanceId, projectId) {
console.log(`Creating instance ${instance.formattedName_}.`);
const [, operation] = await instance.create({
config: 'regional-us-central1',
nodes: 2,
displayName: instanceId,
nodes: 1,
displayName: 'This is a display name.',
labels: {
['cloud_spanner_samples']: 'true',
},
Expand Down

0 comments on commit f9e47d9

Please sign in to comment.