Skip to content

Commit

Permalink
RE: fixed timeout when it is not found in connection settings
Browse files Browse the repository at this point in the history
  • Loading branch information
Vitalii4as committed Jan 26, 2022
1 parent a51c9ab commit 3aed218
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion reverse_engineering/helpers/snowflakeHelper.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ let _;
const connect = async (logger, { host, username, password, authType, authenticator, proofKey, token, role, warehouse, name, cloudPlatform, queryRequestTimeout }) => {
const account = getAccount(host);
const accessUrl = getAccessUrl(account);
const timeout = _.toNumber(queryRequestTimeout);
const timeout = _.toNumber(queryRequestTimeout) || 2 * 60 * 1000;

logger.log('info', `Connection name: ${name}\nCloud platform: ${cloudPlatform}\nHost: ${host}\nAuth type: ${authType}\nUsername: ${username}\nWarehouse: ${warehouse}\nRole: ${role}`, 'Connection');

Expand Down

0 comments on commit 3aed218

Please sign in to comment.