Skip to content

Commit ddb695e

Browse files
committed
修改文件路径
1 parent b2d2f68 commit ddb695e

File tree

2 files changed

+11
-9
lines changed

2 files changed

+11
-9
lines changed

hlb-grpc/example/client_test.go

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,15 @@ package main
33
import (
44
"context"
55
"fmt"
6-
clientv3 "go.etcd.io/etcd/client/v3"
7-
"google.golang.org/grpc"
8-
"google.golang.org/grpc/resolver"
9-
"learning_tools/hlb-grpc/discovery"
10-
"learning_tools/hlb-grpc/example/api"
116
"log"
127
"testing"
138
"time"
9+
10+
"github.com/hwholiday/learning_tools/hlb-grpc/discovery"
11+
"github.com/hwholiday/learning_tools/hlb-grpc/example/api"
12+
clientv3 "go.etcd.io/etcd/client/v3"
13+
"google.golang.org/grpc"
14+
"google.golang.org/grpc/resolver"
1415
)
1516

1617
func TestClient(t *testing.T) {

hlb-grpc/example/server.go

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,17 @@ package main
33
import (
44
"context"
55
"fmt"
6-
clientv3 "go.etcd.io/etcd/client/v3"
7-
"google.golang.org/grpc"
8-
"learning_tools/hlb-grpc/example/api"
9-
"learning_tools/hlb-grpc/register"
106
"log"
117
"net"
128
"os"
139
"os/signal"
1410
"syscall"
1511
"time"
12+
13+
"github.com/hwholiday/learning_tools/hlb-grpc/example/api"
14+
"github.com/hwholiday/learning_tools/hlb-grpc/register"
15+
clientv3 "go.etcd.io/etcd/client/v3"
16+
"google.golang.org/grpc"
1617
)
1718

1819
type ApiService struct{}

0 commit comments

Comments
 (0)