⚙️ Switched the transporter to Redis
This commit is contained in:
@@ -76,7 +76,7 @@ const brokerConfig: BrokerOptions = {
|
|||||||
// More info: https://moleculer.services/docs/0.14/networking.html
|
// More info: https://moleculer.services/docs/0.14/networking.html
|
||||||
// Note: During the development, you don't need to define it because all services will be loaded locally.
|
// Note: During the development, you don't need to define it because all services will be loaded locally.
|
||||||
// In production you can set it via `TRANSPORTER=nats://localhost:4222` environment variable.
|
// In production you can set it via `TRANSPORTER=nats://localhost:4222` environment variable.
|
||||||
transporter: "NATS", // "NATS"
|
transporter: "redis", // "NATS"
|
||||||
|
|
||||||
// Define a cacher.
|
// Define a cacher.
|
||||||
// More info: https://moleculer.services/docs/0.14/caching.html
|
// More info: https://moleculer.services/docs/0.14/caching.html
|
||||||
|
|||||||
13
package-lock.json
generated
13
package-lock.json
generated
@@ -20,6 +20,7 @@
|
|||||||
"dotenv": "^10.0.0",
|
"dotenv": "^10.0.0",
|
||||||
"fs-extra": "^10.0.0",
|
"fs-extra": "^10.0.0",
|
||||||
"imghash": "^0.0.9",
|
"imghash": "^0.0.9",
|
||||||
|
"ioredis": "^4.28.1",
|
||||||
"jsdom": "^15.2.1",
|
"jsdom": "^15.2.1",
|
||||||
"leven": "^3.1.0",
|
"leven": "^3.1.0",
|
||||||
"lodash": "^4.17.21",
|
"lodash": "^4.17.21",
|
||||||
@@ -6333,9 +6334,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/ioredis": {
|
"node_modules/ioredis": {
|
||||||
"version": "4.28.0",
|
"version": "4.28.1",
|
||||||
"resolved": "https://registry.npmjs.org/ioredis/-/ioredis-4.28.0.tgz",
|
"resolved": "https://registry.npmjs.org/ioredis/-/ioredis-4.28.1.tgz",
|
||||||
"integrity": "sha512-I+zkeeWp3XFgPT2CtJKxvaF5FjGBGt4yGYljRjQecdQKteThuAsKqffeF1lgHVlYnuNeozRbPOCDNZ7tDWPeig==",
|
"integrity": "sha512-7gcrUJEcPHWy+eEyq6wIZpXtfHt8crhbc5+z0sqrnHUkwBblXinygfamj+/jx83Qo+2LW3q87Nj2VsuH6BF2BA==",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"cluster-key-slot": "^1.1.0",
|
"cluster-key-slot": "^1.1.0",
|
||||||
"debug": "^4.3.1",
|
"debug": "^4.3.1",
|
||||||
@@ -19492,9 +19493,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"ioredis": {
|
"ioredis": {
|
||||||
"version": "4.28.0",
|
"version": "4.28.1",
|
||||||
"resolved": "https://registry.npmjs.org/ioredis/-/ioredis-4.28.0.tgz",
|
"resolved": "https://registry.npmjs.org/ioredis/-/ioredis-4.28.1.tgz",
|
||||||
"integrity": "sha512-I+zkeeWp3XFgPT2CtJKxvaF5FjGBGt4yGYljRjQecdQKteThuAsKqffeF1lgHVlYnuNeozRbPOCDNZ7tDWPeig==",
|
"integrity": "sha512-7gcrUJEcPHWy+eEyq6wIZpXtfHt8crhbc5+z0sqrnHUkwBblXinygfamj+/jx83Qo+2LW3q87Nj2VsuH6BF2BA==",
|
||||||
"requires": {
|
"requires": {
|
||||||
"cluster-key-slot": "^1.1.0",
|
"cluster-key-slot": "^1.1.0",
|
||||||
"debug": "^4.3.1",
|
"debug": "^4.3.1",
|
||||||
|
|||||||
@@ -46,6 +46,7 @@
|
|||||||
"dotenv": "^10.0.0",
|
"dotenv": "^10.0.0",
|
||||||
"fs-extra": "^10.0.0",
|
"fs-extra": "^10.0.0",
|
||||||
"imghash": "^0.0.9",
|
"imghash": "^0.0.9",
|
||||||
|
"ioredis": "^4.28.1",
|
||||||
"jsdom": "^15.2.1",
|
"jsdom": "^15.2.1",
|
||||||
"leven": "^3.1.0",
|
"leven": "^3.1.0",
|
||||||
"lodash": "^4.17.21",
|
"lodash": "^4.17.21",
|
||||||
|
|||||||
@@ -88,8 +88,9 @@ export const extractCoverFromFile = async (
|
|||||||
walkedFolder.name +
|
walkedFolder.name +
|
||||||
"_cover.jpg"
|
"_cover.jpg"
|
||||||
);
|
);
|
||||||
const ebookMetaPath =
|
const ebookMetaPath = process.env.CALIBRE_EBOOK_META_PATH
|
||||||
`${process.env.CALIBRE_EBOOK_META_PATH}` || `ebook-meta`;
|
? `${process.env.CALIBRE_EBOOK_META_PATH}`
|
||||||
|
: `ebook-meta`;
|
||||||
result = await calibre.run(
|
result = await calibre.run(
|
||||||
ebookMetaPath,
|
ebookMetaPath,
|
||||||
[constructedPaths.inputFilePath],
|
[constructedPaths.inputFilePath],
|
||||||
|
|||||||
Reference in New Issue
Block a user