|
|
@@ -6,9 +6,9 @@ import (
|
|
|
"time"
|
|
|
|
|
|
"git.ikuban.com/server/kratos-utils/http/middleware/logging"
|
|
|
+ "git.ikuban.com/server/kratos-utils/registry"
|
|
|
"github.com/go-kratos/kratos/v2/log"
|
|
|
"github.com/go-kratos/kratos/v2/middleware"
|
|
|
- "github.com/go-kratos/kratos/v2/registry"
|
|
|
"github.com/go-kratos/kratos/v2/transport/grpc"
|
|
|
|
|
|
grpc2 "google.golang.org/grpc"
|
|
|
@@ -26,7 +26,7 @@ type DialOption struct {
|
|
|
}
|
|
|
|
|
|
func GetDialInsecure(
|
|
|
- r registry.Discovery,
|
|
|
+ r registry.Registry,
|
|
|
endpointNameKey string, option *DialOption) (*grpc2.ClientConn, error) {
|
|
|
option = checkOption(option)
|
|
|
endpoint := grpc.WithEndpoint(endpointNameKey)
|