mirror of
https://github.com/featurebasedb/featurebase.git
synced 2026-09-11 23:31:03 +00:00
updated etcd client
This commit is contained in:
parent
28e8639717
commit
6bd377ebe2
2 changed files with 2 additions and 2 deletions
|
|
@ -52,13 +52,13 @@ func (self *TopologyMapper) Setup() {
|
|||
func (self *TopologyMapper) Run() {
|
||||
|
||||
receiver := make(chan *etcd.Response)
|
||||
stop := make(chan bool)
|
||||
go func() {
|
||||
// TODO: add some terminating measure
|
||||
// TODO: use modindex to make sure watch catches everything
|
||||
for {
|
||||
ns := self.namespace + "/db"
|
||||
log.Warn(" ETCD watcher:", ns)
|
||||
stop := make(chan bool)
|
||||
resp, err := self.service.Etcd.Watch(ns, 0, true, receiver, stop)
|
||||
log.Warn("TopologyMapper ETCD watcher", resp, err)
|
||||
}
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@
|
|||
},
|
||||
"etcd": {
|
||||
"repo": "github.com/coreos/go-etcd/etcd",
|
||||
"version": "7745cfd7f8e619cc9e6be450238e6253a57a227f",
|
||||
"version": "2af7a9525b09fb715b215a1fb852dd4814ef52b5",
|
||||
"type": "git"
|
||||
},
|
||||
"gkvlite": {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue