liuxiaolong
2020-03-12 4497238bd859b8351b4eeb7ba6d00ef9264575c4
server.go
@@ -51,7 +51,7 @@
   // publisher, we are going to publish the changes of the set here
   publisher *Publisher
   svInfo map[string]interface{}
   svInfo map[string][]byte
}
type Publisher struct {
@@ -150,7 +150,7 @@
   }
   responses = NewStringSet()
   d.services.svInfo = make(map[string]interface{}, 0)
   d.services.svInfo = make(map[string][]byte, 0)
   for {
      msg, err = d.sock.Recv()
      if err != nil {
@@ -219,7 +219,7 @@
   s := &Services{
      nodes:     NewStringSet(),
      publisher: publisher,
      svInfo: make(map[string]interface{}, 0),
      svInfo: make(map[string][]byte, 0),
   }
   return s
@@ -243,8 +243,8 @@
   return d.services.nodes
}
func (d *DiscoveryServer) SvInfo() map[string]interface{} {
   m := make(map[string]interface{})
func (d *DiscoveryServer) SvInfo() map[string][]byte {
   m := make(map[string][]byte)
   for k,v := range d.services.svInfo {
      m[k] = v
   }