update
This commit is contained in:
+3
-2
@@ -31,8 +31,9 @@ func init() {
|
||||
for scanner.Scan() {
|
||||
line := scanner.Text()
|
||||
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])
|
||||
b := Bucket(v[1])
|
||||
if b.Get(v[2]) != v[3] {
|
||||
b.Set(v[2], v[3])
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user