-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Your Name
committed
Jul 21, 2021
1 parent
950bb1a
commit 25b4f42
Showing
2 changed files
with
6 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,12 +2,12 @@ | |
* @author [email protected] | ||
* @website http://www.showdoc.cc/htq | ||
*/ | ||
const asyncRedis = require("async-redis"); | ||
const client = asyncRedis.createClient(); | ||
const fs = require('fs'); | ||
const config = JSON.parse(fs.readFileSync('./config.json').toString()); | ||
const asyncRedis = require("async-redis"); | ||
const client = asyncRedis.createClient(config.redis_port,config.redis_host); | ||
const fetch = require("node-fetch"); | ||
|
||
const config = JSON.parse(fs.readFileSync('./config.json').toString()); | ||
const redis_client = asyncRedis.createClient(config.redis_port,config.redis_host); //creates a new client | ||
console.log("后台队列服务已经启动,随时等待新队列任务"); | ||
var queue_status_array = []; | ||
|