Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[JobLauncher]: remove unused env variables #1483

Merged
merged 1 commit into from
Jan 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion packages/apps/job-launcher/server/.env.example
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ REPUTATION_ORACLE_ADDRESS=
HCAPTCHA_RECORDING_ORACLE_URI=
HCAPTCHA_REPUTATION_ORACLE_URI=
HCAPTCHA_ORACLE_ADDRESS=
HCAPTCHA_PGP_PUBLIC_KEY=
HCAPTCHA_SITE_KEY=

# Auth
Expand Down
7 changes: 1 addition & 6 deletions packages/apps/job-launcher/server/src/common/config/env.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,21 +17,17 @@ export const ConfigNames = {
POSTGRES_DATABASE: 'POSTGRES_DATABASE',
POSTGRES_PORT: 'POSTGRES_PORT',
POSTGRES_SSL: 'POSTGRES_SSL',
POSTGRES_LOGGING: 'POSTGRES_LOGGING',
WEB3_ENV: 'WEB3_ENV',
WEB3_PRIVATE_KEY: 'WEB3_PRIVATE_KEY',
GAS_PRICE_MULTIPLIER: 'GAS_PRICE_MULTIPLIER',
PGP_PRIVATE_KEY: 'PGP_PRIVATE_KEY',
PGP_ENCRYPT: 'PGP_ENCRYPT',
JOB_LAUNCHER_FEE: 'JOB_LAUNCHER_FEE',
RECORDING_ORACLE_FEE: 'RECORDING_ORACLE_FEE',
REPUTATION_ORACLE_FEE: 'REPUTATION_ORACLE_FEE',
EXCHANGE_ORACLE_FEE: 'EXCHANGE_ORACLE_FEE',
REPUTATION_ORACLE_ADDRESS: 'REPUTATION_ORACLE_ADDRESS',
FORTUNE_EXCHANGE_ORACLE_ADDRESS: 'FORTUNE_EXCHANGE_ORACLE_ADDRESS',
FORTUNE_EXCHANGE_ORACLE_WEBHOOK_URL: 'FORTUNE_EXCHANGE_ORACLE_WEBHOOK_URL',
FORTUNE_RECORDING_ORACLE_ADDRESS: 'FORTUNE_RECORDING_ORACLE_ADDRESS',
CVAT_EXCHANGE_ORACLE_ADDRESS: 'CVAT_EXCHANGE_ORACLE_ADDRESS',
CVAT_EXCHANGE_ORACLE_WEBHOOK_URL: 'CVAT_EXCHANGE_ORACLE_WEBHOOK_URL',
CVAT_RECORDING_ORACLE_ADDRESS: 'CVAT_RECORDING_ORACLE_ADDRESS',
HCAPTCHA_RECORDING_ORACLE_URI: 'HCAPTCHA_RECORDING_ORACLE_URI',
HCAPTCHA_REPUTATION_ORACLE_URI: 'HCAPTCHA_REPUTATION_ORACLE_URI',
Expand All @@ -56,7 +52,6 @@ export const ConfigNames = {
CVAT_VAL_SIZE: 'CVAT_VAL_SIZE',
APIKEY_ITERATIONS: 'APIKEY_ITERATIONS',
APIKEY_KEY_LENGTH: 'APIKEY_KEY_LENGTH',
POSTGRES_LOGGING: 'POSTGRES_LOGGING',
};

export const envValidator = Joi.object({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -196,10 +196,6 @@ describe('JobService', () => {
return MOCK_RECORDING_ORACLE_ADDRESS;
case 'REPUTATION_ORACLE_ADDRESS':
return MOCK_REPUTATION_ORACLE_ADDRESS;
case 'FORTUNE_EXCHANGE_ORACLE_WEBHOOK_URL':
return MOCK_EXCHANGE_ORACLE_WEBHOOK_URL;
case 'CVAT_EXCHANGE_ORACLE_WEBHOOK_URL':
return MOCK_EXCHANGE_ORACLE_WEBHOOK_URL;
case 'HOST':
return '127.0.0.1';
case 'PORT':
Expand Down
Loading