Skip to content

Commit

Permalink
fix: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
Lalji Kanjareeya committed Aug 5, 2020
1 parent 4499263 commit 0a50621
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions samples/dml.js
Original file line number Diff line number Diff line change
Expand Up @@ -638,7 +638,6 @@ async function executeSqlWithCustomTimeoutAndRetrySettings(
// [START spanner_set_custom_timeout_and_retry]
// Imports the Google Cloud client library
const {Spanner} = require('@google-cloud/spanner');
const {grpc} = require('google-gax');

/**
* TODO(developer): Uncomment the following lines before running the sample.
Expand All @@ -651,10 +650,11 @@ async function executeSqlWithCustomTimeoutAndRetrySettings(
const spanner = new Spanner({
projectId: projectId,
});

const DEADLINE_EXCEEDED_STATUS_CODE = 4;
const UNAVAILABLE_STATUS_CODE = 14;
const retryAndTimeoutSettings = {
retry: {
retryCodes: [grpc.status.DEADLINE_EXCEEDED, grpc.status.UNAVAILABLE],
retryCodes: [DEADLINE_EXCEEDED_STATUS_CODE, UNAVAILABLE_STATUS_CODE],
backoffSettings: {
// Configure retry delay settings.
initialRetryDelayMillis: 500,
Expand Down

0 comments on commit 0a50621

Please sign in to comment.