|
@ -3,7 +3,6 @@ package etcd |
|
|
import ( |
|
|
import ( |
|
|
"context" |
|
|
"context" |
|
|
"fmt" |
|
|
"fmt" |
|
|
"log" |
|
|
|
|
|
|
|
|
|
|
|
"gitoa.ru/go-4devs/config" |
|
|
"gitoa.ru/go-4devs/config" |
|
|
"gitoa.ru/go-4devs/config/key" |
|
|
"gitoa.ru/go-4devs/config/key" |
|
@ -83,7 +82,6 @@ func (p *Provider) getEventKvs(events []*client.Event) ([]*pb.KeyValue, []*pb.Ke |
|
|
for i := range events { |
|
|
for i := range events { |
|
|
kvs = append(kvs, events[i].Kv) |
|
|
kvs = append(kvs, events[i].Kv) |
|
|
old = append(old, events[i].PrevKv) |
|
|
old = append(old, events[i].PrevKv) |
|
|
log.Println(events[i].Type) |
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
return kvs, old |
|
|
return kvs, old |
|
|