Skip to content

Commit

Permalink
refactor: remove some unnecessary comment
Browse files Browse the repository at this point in the history
Signed-off-by: wushiling50 <2531010934@qq.com>
  • Loading branch information
wushiling50 committed Sep 12, 2024
1 parent 6d2d01f commit f6f3f2e
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion components/lock/mongo/mongo_lock.go
Original file line number Diff line number Diff line change
Expand Up @@ -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),
}
Expand Down

0 comments on commit f6f3f2e

Please sign in to comment.