From 0807802cea9ac80c63c396c3c43fd7c35534da6d Mon Sep 17 00:00:00 2001 From: Vasiliy Tolstov Date: Thu, 30 Jan 2020 14:39:00 +0300 Subject: [PATCH] fix import paths for v2 release Signed-off-by: Vasiliy Tolstov --- codec.go | 4 ++-- error.go | 2 +- grpc.go | 14 +++++++------- grpc_test.go | 8 ++++---- message.go | 2 +- options.go | 2 +- request.go | 4 ++-- response.go | 4 ++-- stream.go | 2 +- 9 files changed, 21 insertions(+), 21 deletions(-) diff --git a/codec.go b/codec.go index 70ef0b9..4b224a7 100644 --- a/codec.go +++ b/codec.go @@ -9,8 +9,8 @@ import ( "github.com/golang/protobuf/jsonpb" "github.com/golang/protobuf/proto" jsoniter "github.com/json-iterator/go" - "github.com/micro/go-micro/codec" - "github.com/micro/go-micro/codec/bytes" + "github.com/micro/go-micro/v2/codec" + "github.com/micro/go-micro/v2/codec/bytes" "google.golang.org/grpc" "google.golang.org/grpc/encoding" ) diff --git a/error.go b/error.go index 4783252..07a31c7 100644 --- a/error.go +++ b/error.go @@ -1,7 +1,7 @@ package grpc import ( - "github.com/micro/go-micro/errors" + "github.com/micro/go-micro/v2/errors" "google.golang.org/grpc/status" ) diff --git a/grpc.go b/grpc.go index 1d4eea0..dc79076 100644 --- a/grpc.go +++ b/grpc.go @@ -9,13 +9,13 @@ import ( "sync" "time" - "github.com/micro/go-micro/broker" - "github.com/micro/go-micro/client" - "github.com/micro/go-micro/client/selector" - raw "github.com/micro/go-micro/codec/bytes" - "github.com/micro/go-micro/errors" - "github.com/micro/go-micro/metadata" - "github.com/micro/go-micro/registry" + "github.com/micro/go-micro/v2/broker" + "github.com/micro/go-micro/v2/client" + "github.com/micro/go-micro/v2/client/selector" + raw "github.com/micro/go-micro/v2/codec/bytes" + "github.com/micro/go-micro/v2/errors" + "github.com/micro/go-micro/v2/metadata" + "github.com/micro/go-micro/v2/registry" "google.golang.org/grpc" "google.golang.org/grpc/credentials" diff --git a/grpc_test.go b/grpc_test.go index 6d975ca..16d34e7 100644 --- a/grpc_test.go +++ b/grpc_test.go @@ -5,10 +5,10 @@ import ( "net" "testing" - "github.com/micro/go-micro/client" - "github.com/micro/go-micro/client/selector" - "github.com/micro/go-micro/registry" - "github.com/micro/go-micro/registry/memory" + "github.com/micro/go-micro/v2/client" + "github.com/micro/go-micro/v2/client/selector" + "github.com/micro/go-micro/v2/registry" + "github.com/micro/go-micro/v2/registry/memory" pgrpc "google.golang.org/grpc" pb "google.golang.org/grpc/examples/helloworld/helloworld" ) diff --git a/message.go b/message.go index 5691868..ddc8b92 100644 --- a/message.go +++ b/message.go @@ -1,7 +1,7 @@ package grpc import ( - "github.com/micro/go-micro/client" + "github.com/micro/go-micro/v2/client" ) type grpcEvent struct { diff --git a/options.go b/options.go index 146e42b..28222f8 100644 --- a/options.go +++ b/options.go @@ -5,7 +5,7 @@ import ( "context" "crypto/tls" - "github.com/micro/go-micro/client" + "github.com/micro/go-micro/v2/client" "google.golang.org/grpc" "google.golang.org/grpc/encoding" ) diff --git a/request.go b/request.go index 066577c..d755572 100644 --- a/request.go +++ b/request.go @@ -4,8 +4,8 @@ import ( "fmt" "strings" - "github.com/micro/go-micro/client" - "github.com/micro/go-micro/codec" + "github.com/micro/go-micro/v2/client" + "github.com/micro/go-micro/v2/codec" ) type grpcRequest struct { diff --git a/response.go b/response.go index c870fad..5fd4016 100644 --- a/response.go +++ b/response.go @@ -3,8 +3,8 @@ package grpc import ( "strings" - "github.com/micro/go-micro/codec" - "github.com/micro/go-micro/codec/bytes" + "github.com/micro/go-micro/v2/codec" + "github.com/micro/go-micro/v2/codec/bytes" "google.golang.org/grpc" "google.golang.org/grpc/encoding" ) diff --git a/stream.go b/stream.go index e5ebd15..ae13bbc 100644 --- a/stream.go +++ b/stream.go @@ -5,7 +5,7 @@ import ( "io" "sync" - "github.com/micro/go-micro/client" + "github.com/micro/go-micro/v2/client" "google.golang.org/grpc" )