Skip to content

Commit d57640b

Browse files
authored
Update utility.ts
1 parent 2aedf4a commit d57640b

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

util/utility.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ function getSteamAPIDataCallback(url: string | GetDataOptions, cb: ErrorCb) {
202202
}
203203
}
204204
const target = urllib.format(parse);
205-
console.log(target);
205+
console.time(target);
206206
request(
207207
{
208208
url: target,
@@ -211,6 +211,7 @@ function getSteamAPIDataCallback(url: string | GetDataOptions, cb: ErrorCb) {
211211
timeout,
212212
},
213213
(err, res, body) => {
214+
console.timeEnd(target);
214215
if (
215216
err ||
216217
!res ||
@@ -1011,4 +1012,4 @@ export async function isAutoCachePlayer(redis: Redis, accountId: number) {
10111012
const isLogin = Boolean(Number(await redis.zscore('visitors', accountId)) > Number(moment().subtract(30, 'day').format('X')));
10121013
const isRecent = Boolean(await redis.zscore('player_matches_visit', accountId));
10131014
return isLogin || isRecent;
1014-
}
1015+
}

0 commit comments

Comments
 (0)