提交 12879d3d 编写于 作者: Huan (李卓桓)'s avatar Huan (李卓桓)

it seems that the puppeteer will only change the age timestamp every 2 minutes

上级 18d113b3
......@@ -110,8 +110,8 @@ function onError (e: Error) {
async function onMessage (msg: Message) {
console.info(msg.toString())
if (msg.age() > 60) {
console.info('Message discarded because its TOO OLD(than 1 minute)')
if (msg.age() > 2 * 60) {
console.info('Message discarded because its TOO OLD(than 2 minutes)')
return
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册