add golangci-lint linter (#5499)

This commit is contained in:
Ondřej Benkovský 2022-07-10 20:06:33 +02:00 committed by GitHub
parent abc5ac8017
commit c2dbb7141a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
104 changed files with 83 additions and 184 deletions

View file

@ -9,6 +9,7 @@ import (
"github.com/miekg/dns"
"google.golang.org/grpc"
"google.golang.org/grpc/credentials/insecure"
)
func TestGrpc(t *testing.T) {
@ -24,7 +25,7 @@ func TestGrpc(t *testing.T) {
ctx, cancel := context.WithTimeout(context.Background(), 5*time.Second)
defer cancel()
conn, err := grpc.DialContext(ctx, tcp, grpc.WithInsecure(), grpc.WithBlock())
conn, err := grpc.DialContext(ctx, tcp, grpc.WithTransportCredentials(insecure.NewCredentials()), grpc.WithBlock())
if err != nil {
t.Fatalf("Expected no error but got: %s", err)
}