From f6f3f2eb40ae7a95a9332a1369a39d0b9134ab58 Mon Sep 17 00:00:00 2001 From: wushiling50 <2531010934@qq.com> Date: Thu, 12 Sep 2024 20:45:16 +0800 Subject: [PATCH] refactor: remove some unnecessary comment Signed-off-by: wushiling50 <2531010934@qq.com> --- components/lock/mongo/mongo_lock.go | 1 - 1 file changed, 1 deletion(-) diff --git a/components/lock/mongo/mongo_lock.go b/components/lock/mongo/mongo_lock.go index cfec4581a0..b57522dd7e 100644 --- a/components/lock/mongo/mongo_lock.go +++ b/components/lock/mongo/mongo_lock.go @@ -94,7 +94,6 @@ func (e *MongoLock) Init(metadata lock.Metadata) error { // create exprie time index indexModel := mongo.IndexModel{ - // Keys: bsonx.Doc{{Key: "Expire", Value: bsonx.Int64(1)}}, Keys: primitive.D{{Key: "Expire", Value: bsoncore.Value{Type: bson.TypeInt64, Data: []byte{1}}}}, Options: options.Index().SetExpireAfterSeconds(0), }