Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build(deps): bump google.golang.org/grpc from 1.37.0 to 1.57.0 #165

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion commands/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ import (
"github.com/soheilhy/cmux"
"github.com/urfave/cli"
"google.golang.org/grpc"
"google.golang.org/grpc/credentials/insecure"
"google.golang.org/grpc/reflection"
dat "gopkg.in/mgutz/dat.v2/dat"
runner "gopkg.in/mgutz/dat.v2/sqlx-runner"
Expand Down Expand Up @@ -110,7 +111,9 @@ func createCMux(lis net.Listener) (cmux.CMux, net.Listener, net.Listener) {
}

func registerHTTPHandler(c *cli.Context, httpMux *runtime.ServeMux) error {
opts := []grpc.DialOption{grpc.WithInsecure()}
opts := []grpc.DialOption{
grpc.WithTransportCredentials(insecure.NewCredentials()),
}
endP := fmt.Sprintf(":%s", c.String("port"))
err := pb.RegisterContentServiceHandlerFromEndpoint(
context.Background(),
Expand Down
6 changes: 1 addition & 5 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,8 @@ require (
github.com/jackc/fake v0.0.0-20150926172116-812a484cc733 // indirect
github.com/jackc/pgx v3.6.2+incompatible
github.com/jmoiron/sqlx v0.0.0-20180124204410-05cef0741ade // indirect
github.com/kr/pretty v0.2.0 // indirect
github.com/lib/pq v0.0.0-20180123210206-19c8e9ad0095 // indirect
github.com/mattn/go-colorable v0.0.9 // indirect
github.com/mattn/go-isatty v0.0.3 // indirect
github.com/mattn/go-sqlite3 v2.0.3+incompatible // indirect
github.com/mgutz/ansi v0.0.0-20170206155736-9520e82c474b // indirect
github.com/mgutz/jo v1.1.0 // indirect
Expand All @@ -39,9 +37,7 @@ require (
github.com/sirupsen/logrus v1.9.3
github.com/soheilhy/cmux v0.1.5
github.com/urfave/cli v1.22.14
google.golang.org/genproto v0.0.0-20200806141610-86f49bd18e98 // indirect
google.golang.org/grpc v1.37.0
gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15 // indirect
google.golang.org/grpc v1.57.0
gopkg.in/mgutz/dat.v2 v2.0.0-20171004160617-d76e4f81c4ef
gopkg.in/src-d/go-git.v4 v4.13.1
gopkg.in/stretchr/testify.v1 v1.2.2 // indirect
Expand Down
Loading
Loading