use insecure explicitly
This commit is contained in:
parent
0bfc8779de
commit
b98d050c7b
1 changed files with 2 additions and 1 deletions
|
@ -8,6 +8,7 @@ import (
|
|||
"strconv"
|
||||
|
||||
"google.golang.org/grpc"
|
||||
"google.golang.org/grpc/credentials/insecure"
|
||||
"nim.jasinco.work/app/igapi"
|
||||
)
|
||||
|
||||
|
@ -77,7 +78,7 @@ func ReadFromENV() error {
|
|||
}
|
||||
|
||||
func IGAPI_establish() (*grpc.ClientConn, igapi.IGAPIClient) {
|
||||
conn, err := grpc.NewClient(IGAPI_HOST)
|
||||
conn, err := grpc.NewClient(IGAPI_HOST, grpc.WithTransportCredentials(insecure.NewCredentials()))
|
||||
if err != nil {
|
||||
log.Panicf("Can't connect to igapi: %s", err.Error())
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue