From f9e0ba746c797900b18781109367703d5046df9e Mon Sep 17 00:00:00 2001 From: xiyoo0812 Date: Sun, 12 May 2024 01:31:15 +0800 Subject: [PATCH] =?UTF-8?q?bson=E5=8A=9F=E8=83=BD=E6=89=A9=E5=B1=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- script/queue/mongo_mq.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/script/queue/mongo_mq.lua b/script/queue/mongo_mq.lua index cb2aecd0..81dd9392 100644 --- a/script/queue/mongo_mq.lua +++ b/script/queue/mongo_mq.lua @@ -59,7 +59,7 @@ end function MongoMQ:send_message(target_id, event, args, ttl) local doc = { args = args, event = event, target_id = target_id, time = quanta.now_ms, uuid = new_guid() } if ttl then - --设置过期ttl字段 + --设置过期ttl字段, 单位毫秒 doc.ttl = bdate(quanta.now_ms + ttl * 1000) end local ok = mongo_agent:insert({ self.coll_name, doc }, target_id)