Skip to content

Commit f54bd13

Browse files
fmt (#35)
1 parent b972510 commit f54bd13

File tree

3 files changed

+9
-5
lines changed

3 files changed

+9
-5
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,4 @@ This client implements all the [api's](https://rawcdn.githack.com/go-chassis/ser
77

88

99

10+
**NOTICE**: this client is migrate to github.com/go-chassis/go-chassis/pkg/scclient

go.mod

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,15 @@ module github.com/go-chassis/go-sc-client
22

33
require (
44
github.com/cenkalti/backoff v2.0.0+incompatible
5-
github.com/go-chassis/go-chassis v1.2.0
5+
github.com/go-chassis/go-chassis v1.1.3
66
github.com/go-chassis/paas-lager v0.0.0-20181123014243-005283cca84c
7+
github.com/go-logfmt/logfmt v0.4.0 // indirect
78
github.com/go-mesh/openlogging v0.0.0-20181122085847-3daf3ad8ed35
9+
github.com/gogo/protobuf v1.2.0 // indirect
810
github.com/golang/protobuf v1.2.0
911
github.com/gorilla/websocket v1.4.0
1012
github.com/stretchr/testify v1.2.2
11-
golang.org/x/net v0.0.0-20180824152047-4bcd98cce591
12-
google.golang.org/grpc v1.14.0
13+
golang.org/x/net v0.0.0-20181114220301-adae6a3d119a
14+
google.golang.org/grpc v1.16.0
1315

1416
)

util.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@ package client
22

33
import (
44
"github.com/cenkalti/backoff"
5+
"github.com/go-chassis/go-sc-client/proto"
56
"log"
67
"net/url"
78
"time"
8-
"github.com/go-chassis/go-sc-client/proto"
99
)
1010

1111
func getBackOff(backoffType string) backoff.BackOff {
@@ -41,7 +41,8 @@ func getProtocolMap(eps []string) map[string]string {
4141
return m
4242
}
4343

44-
func RegroupInstances(keys []*proto.FindService,response proto.BatchFindInstancesResponse) map[string][]*proto.MicroServiceInstance{
44+
//RegroupInstances organize raw data to better format
45+
func RegroupInstances(keys []*proto.FindService, response proto.BatchFindInstancesResponse) map[string][]*proto.MicroServiceInstance {
4546
instanceMap := make(map[string][]*proto.MicroServiceInstance, 0)
4647
if response.Services != nil {
4748
for _, result := range response.Services.Updated {

0 commit comments

Comments
 (0)