mirror of
https://github.com/featurebasedb/featurebase.git
synced 2026-09-10 15:01:03 +00:00
Update local metadata from etcd watcher.
This commit is contained in:
parent
7d31f48732
commit
f7b5550315
1 changed files with 5 additions and 2 deletions
|
|
@ -112,8 +112,11 @@ func (service *Service) MetaWatcher() {
|
|||
_, _ = service.Etcd.Watch(namespace + "/db", 0, true, receiver, stop)
|
||||
}()
|
||||
go func() {
|
||||
for x := range receiver {
|
||||
spew.Dump(x)
|
||||
for resp = range receiver {
|
||||
switch resp.Action {
|
||||
case "set":
|
||||
handlenode(resp.Node, namespace, cluster)
|
||||
}
|
||||
}
|
||||
}()
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue