update import paths

Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
This commit is contained in:
2021-10-27 23:49:50 +03:00
parent 3ba598448b
commit ca7565c7c8
10 changed files with 86 additions and 154 deletions

View File

@@ -6,7 +6,7 @@ import (
"net"
"sync"
"github.com/unistack-org/micro/v3/logger"
"go.unistack.org/micro/v3/logger"
"golang.org/x/net/dns/dnsmessage"
"golang.org/x/net/ipv4"
"golang.org/x/net/ipv6"
@@ -311,7 +311,7 @@ func (c *client) query(ctx context.Context, params *QueryParam) error {
// buf := make([]byte, 2, 514)
hdr := dnsmessage.Header{RecursionDesired: false}
b := dnsmessage.NewBuilder(nil, hdr)
//b.EnableCompression()
// b.EnableCompression()
name, err := dnsmessage.NewName(serviceAddr)
if err != nil {
return err
@@ -322,7 +322,7 @@ func (c *client) query(ctx context.Context, params *QueryParam) error {
} else {
q.Type = params.Type
}
//q.Class |= 1 << 15
// q.Class |= 1 << 15
if err = b.StartQuestions(); err != nil {
return err
}
@@ -381,7 +381,6 @@ func (c *client) query(ctx context.Context, params *QueryParam) error {
return nil
}
}
}
// sendQuery is used to multicast a query out

View File

@@ -8,8 +8,8 @@ import (
"sync/atomic"
"github.com/miekg/dns"
registry "github.com/unistack-org/micro/v3/register"
regutil "github.com/unistack-org/micro/v3/util/register"
registry "go.unistack.org/micro/v3/register"
regutil "go.unistack.org/micro/v3/util/register"
"golang.org/x/net/dns/dnsmessage"
"golang.org/x/net/ipv4"
"golang.org/x/net/ipv6"
@@ -139,8 +139,8 @@ func NewServer(config *Config) (*Server, error) {
go s.recv(s.ipv6conn)
go s.update()
//s.wg.Add(1)
//go s.probe()
// s.wg.Add(1)
// go s.probe()
return s, nil
}
@@ -218,7 +218,6 @@ func (s *Server) parsePacket(buf []byte, from net.Addr) error {
}
func (s *Server) LookupService(name string, opts ...registry.LookupOption) ([]*registry.Service, error) {
return nil, nil
}

View File

@@ -5,7 +5,7 @@ package mdns
import (
"testing"
registry "github.com/unistack-org/micro/v3/register"
registry "go.unistack.org/micro/v3/register"
)
var (