|
@@ -205,7 +205,7 @@ func (s *Store) internalSet(key string, value string, expireTime time.Time, inde
|
|
|
} else {
|
|
} else {
|
|
|
|
|
|
|
|
// If we want the permanent node to have expire time
|
|
// If we want the permanent node to have expire time
|
|
|
- // We need to create create a go routine with a channel
|
|
|
|
|
|
|
+ // We need to create a go routine with a channel
|
|
|
if isExpire {
|
|
if isExpire {
|
|
|
node.update = make(chan time.Time)
|
|
node.update = make(chan time.Time)
|
|
|
go s.monitorExpiration(key, node.update, expireTime)
|
|
go s.monitorExpiration(key, node.update, expireTime)
|