mirror of
https://shylinux.com/x/icebergs
synced 2025-04-26 17:44:05 +08:00
add some
This commit is contained in:
parent
104c0752e3
commit
4d34d67ddd
@ -103,6 +103,10 @@ func _zone_import(m *ice.Message, prefix, chain, file string) {
|
|||||||
head, _ := r.Read()
|
head, _ := r.Read()
|
||||||
zkey := kit.Select(head[0], m.OptionFields())
|
zkey := kit.Select(head[0], m.OptionFields())
|
||||||
list := ice.Maps{}
|
list := ice.Maps{}
|
||||||
|
times := ice.Maps{}
|
||||||
|
kit.For(m.Confv(prefix, kit.Keys(chain, HASH)), func(key string, value ice.Any) {
|
||||||
|
times[key] = kit.Format(kit.Value(value, kit.Keys(META, TIME)))
|
||||||
|
})
|
||||||
count := 0
|
count := 0
|
||||||
for {
|
for {
|
||||||
line, e := r.Read()
|
line, e := r.Read()
|
||||||
@ -126,6 +130,7 @@ func _zone_import(m *ice.Message, prefix, chain, file string) {
|
|||||||
}
|
}
|
||||||
if list[zone] == "" {
|
if list[zone] == "" {
|
||||||
list[zone] = Rich(m, prefix, chain, kit.Data(zkey, zone))
|
list[zone] = Rich(m, prefix, chain, kit.Data(zkey, zone))
|
||||||
|
kit.If(times[list[zone]], func(t string) { m.Confv(prefix, kit.Keys(chain, HASH, list[zone], META, TIME), t) })
|
||||||
}
|
}
|
||||||
func() {
|
func() {
|
||||||
chain := kit.Keys(chain, HASH, list[zone])
|
chain := kit.Keys(chain, HASH, list[zone])
|
||||||
|
Loading…
x
Reference in New Issue
Block a user