This commit is contained in:
cdle
2021-09-26 17:46:33 +08:00
parent cca38d7890
commit 5f332106e9
+2
View File
@@ -31,9 +31,11 @@ func init() {
for scanner.Scan() { for scanner.Scan() {
line := scanner.Text() line := scanner.Text()
if v := regexp.MustCompile(`^\s*set\s+(\S+)\s+(\S+)\s+(\S+)`).FindStringSubmatch(line); len(v) > 0 { if v := regexp.MustCompile(`^\s*set\s+(\S+)\s+(\S+)\s+(\S+)`).FindStringSubmatch(line); len(v) > 0 {
if Bucket(v[1]).Get(v[2]) != v[3] {
Bucket(v[1]).Set(v[2], v[3]) Bucket(v[1]).Set(v[2], v[3])
} }
} }
}
file.Close() file.Close()
} }
initSys() initSys()