8 is too much
This commit is contained in:
parent
1dd97e6ebe
commit
8d1ff20376
2
index.js
2
index.js
@ -91,7 +91,7 @@ wss.on('connection', ws => {
|
|||||||
if (xhr.readyState === 4) {
|
if (xhr.readyState === 4) {
|
||||||
switch(xhr.status) {
|
switch(xhr.status) {
|
||||||
case 200:
|
case 200:
|
||||||
let ran_key = get_key(8)
|
let ran_key = get_key(4)
|
||||||
//write to redis
|
//write to redis
|
||||||
redis_cli.hmset("surl;"+ran_key, "url", msg[1], "time", Date.now())
|
redis_cli.hmset("surl;"+ran_key, "url", msg[1], "time", Date.now())
|
||||||
ws.send('surl;'+host+ran_key)
|
ws.send('surl;'+host+ran_key)
|
||||||
|
Loading…
Reference in New Issue
Block a user