mirror of
https://github.com/featurebasedb/featurebase.git
synced 2026-08-28 10:54:59 +00:00
Fix compilation bugs.
This commit is contained in:
parent
ce7395cfe7
commit
10acedcba2
1 changed files with 2 additions and 3 deletions
|
|
@ -2,7 +2,6 @@ package core
|
|||
|
||||
import (
|
||||
"github.com/coreos/go-etcd/etcd"
|
||||
"github.com/coreos/etcd/store"
|
||||
"log"
|
||||
"os"
|
||||
"os/signal"
|
||||
|
|
@ -283,7 +282,7 @@ func (service *Service) HandleConnections() {
|
|||
|
||||
func (service *Service) SetupEtcd() {
|
||||
gob.Register(Location{})
|
||||
service.Etcd = etcd.NewClient()
|
||||
service.Etcd = etcd.NewClient(nil)
|
||||
service.NodeMapMutex.Lock()
|
||||
defer service.NodeMapMutex.Unlock()
|
||||
service.NodeMap = NodeMap{}
|
||||
|
|
@ -308,7 +307,7 @@ func (service *Service) SetupEtcd() {
|
|||
}
|
||||
|
||||
func (service *Service) WatchEtcd() {
|
||||
var receiver = make(chan *store.Response)
|
||||
var receiver = make(chan *etcd.Response)
|
||||
var stop chan bool
|
||||
go func () {
|
||||
_, err := service.Etcd.Watch("nodes/", 0, receiver, stop)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue