Skip to content

Commit 998f76e

Browse files
committed
Add tests cases for storages
1 parent 3ecadd5 commit 998f76e

File tree

5 files changed

+516
-13
lines changed

5 files changed

+516
-13
lines changed

storage/redis/helpers.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ func updateRuleBasedSegments(pipeline redis.Pipeline, toAdd []dtos.RuleBasedSegm
104104
if len(toRemove) > 0 {
105105
toRemoveKeys := make([]string, 0, len(toRemove))
106106
for idx := range toRemove {
107-
toRemoveKeys = append(toRemoveKeys, strings.Replace(KeySplit, "{split}", toRemove[idx].Name, 1))
107+
toRemoveKeys = append(toRemoveKeys, strings.Replace(KeyRuleBasedSegment, "{rbsegment}", toRemove[idx].Name, 1))
108108
}
109109
pipeline.Del(toRemoveKeys...)
110110
}

0 commit comments

Comments
 (0)