Skip to content

Commit 74bd0ed

Browse files
committed
fix
1 parent d763975 commit 74bd0ed

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

consultingapis/dingtalk/v1/dingtalk.pb.gw.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

consultingapis/dingtalk/v1/dingtalk.proto

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ service DingTalkService {
2121

2222
rpc JoinClassChatGroup(JoinClassChatGroupRequest) returns (JoinClassChatGroupResponse) {
2323
option (google.api.http) = {
24-
patch: "/dingtalk/chat/v1/join"
24+
get: "/dingtalk/chat/v1/join"
2525
};
2626
}
2727
}

docs/swagger/consultingapis/dingtalk/v1/dingtalk.swagger.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@
7777
}
7878
},
7979
"/dingtalk/chat/v1/join": {
80-
"patch": {
80+
"get": {
8181
"operationId": "DingTalkService_JoinClassChatGroup",
8282
"responses": {
8383
"200": {

grpcClient/conn.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import (
1313

1414
var defaultEndpoint = "gapi.hduhelp.com:443"
1515

16-
func Conn(ctx context.Context, endpoints ...string) grpc.ClientConnInterface {
16+
func Conn(ctx context.Context, endpoints ...string) *grpc.ClientConn {
1717
var endpoint string
1818
if len(endpoints) != 0 {
1919
endpoint = endpoints[0]
@@ -26,7 +26,7 @@ func Conn(ctx context.Context, endpoints ...string) grpc.ClientConnInterface {
2626
}
2727
creds := credentials.NewClientTLSFromCert(certPool, "gapi.hduhelp.com")
2828
conn, err := grpc.DialContext(ctx, endpoint, grpc.WithTransportCredentials(creds))
29-
if err != nil {
29+
if err != nil || conn == nil {
3030
log.Fatal("grpc client did not connect", zap.Error(err))
3131
}
3232
return conn

0 commit comments

Comments
 (0)