Skip to content

Commit 91bdeb7

Browse files
committed
modify comment to english
1 parent d4c04d2 commit 91bdeb7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

structure/set.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -405,7 +405,7 @@ type FSetWithTTL struct {
405405

406406
// setSetToDB
407407
func (s *SetStructure) setSetToDB(key []byte, zSetValue *FSets, ttl time.Duration) error {
408-
// 创建新的结构体实例,包含zSetValue和TTL值
408+
// create a new zSetValueWithTTL struct
409409
var expire int64 = 0
410410

411411
if ttl != 0 {
@@ -418,7 +418,7 @@ func (s *SetStructure) setSetToDB(key []byte, zSetValue *FSets, ttl time.Duratio
418418
}
419419

420420
val := encoding.NewMessagePackEncoder()
421-
err := val.Encode(valueWithTTL) // 编码包含zSetValue和TTL的新的结构体
421+
err := val.Encode(valueWithTTL) // Encode the value along with TTL
422422
if err != nil {
423423
return err
424424
}

0 commit comments

Comments
 (0)