-
Notifications
You must be signed in to change notification settings - Fork 0
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
Integrates shared cache, lib errors #8
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would use the cache manager class directly and update all of the sensitive values at the same time.
If any call fails, we don't update the value.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would change the uppercase endpoints (ex: AVC) to lowercase
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
.gitignore
Outdated
/charts/taraxa-info-api/prod.secret.values.yaml | ||
|
||
src/routes.json |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can remove this.
@@ -9,6 +9,9 @@ app: | |||
coingeckoUri: https://api.coingecko.com/api/v3/simple/price?ids=taraxa&vs_currencies=usd | |||
testnetExplorerUri: https://explorer.testnet.taraxa.io | |||
mainnetExplorerUri: https://explorer.mainnet.taraxa.io | |||
redisHost: 10.39.114.21 | |||
redisPort: 6379 | |||
redisName: infocache |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We also need a password as the production redis is password-protected.
package.json
Outdated
"ethers": "^5.3.1", | ||
"fs": "^0.0.1-security", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can remove this.
src/main.ts
Outdated
@@ -1,6 +1,7 @@ | |||
import { NestFactory } from '@nestjs/core'; | |||
import { DocumentBuilder, SwaggerModule } from '@nestjs/swagger'; | |||
import { AppModule } from './app.module'; | |||
import * as fs from 'fs'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can remove this.
No description provided.