From 01d1f93fa41204b463b5e141e8663cb2e482a0b5 Mon Sep 17 00:00:00 2001 From: "deepsource-autofix[bot]" <62050782+deepsource-autofix[bot]@users.noreply.github.com> Date: Mon, 10 Jul 2023 05:24:34 +0000 Subject: [PATCH] style: Format code with prettier and gofumpt --- internal/net/dialer.go | 8 ++++---- internal/net/grpc/pool/pool_bench_test.go | 2 +- internal/sync/map.go | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/internal/net/dialer.go b/internal/net/dialer.go index 2dd63ddf3f4..692cc1e0586 100644 --- a/internal/net/dialer.go +++ b/internal/net/dialer.go @@ -33,8 +33,8 @@ import ( "github.com/vdaas/vald/internal/net/control" "github.com/vdaas/vald/internal/observability/trace" "github.com/vdaas/vald/internal/safety" - "github.com/vdaas/vald/internal/tls" valdsync "github.com/vdaas/vald/internal/sync" + "github.com/vdaas/vald/internal/tls" ) // Dialer is an interface to get the dialer instance to connect to an address. @@ -255,9 +255,9 @@ func (d *dialer) cachedDialer(ctx context.Context, network, addr string) (conn C isIP: isV4 || isV6, }) } else { - host = ai.host - port = ai.port - isIP = ai.isIP + host = ai.host + port = ai.port + isIP = ai.isIP } if d.enableDNSCache && !isIP { diff --git a/internal/net/grpc/pool/pool_bench_test.go b/internal/net/grpc/pool/pool_bench_test.go index 53939d234ab..a8d7515c1f1 100644 --- a/internal/net/grpc/pool/pool_bench_test.go +++ b/internal/net/grpc/pool/pool_bench_test.go @@ -27,9 +27,9 @@ import ( "github.com/vdaas/vald/internal/log" "github.com/vdaas/vald/internal/log/level" "github.com/vdaas/vald/internal/net" + valdsync "github.com/vdaas/vald/internal/sync" "google.golang.org/grpc" "google.golang.org/grpc/credentials/insecure" - valdsync "github.com/vdaas/vald/internal/sync" ) const ( diff --git a/internal/sync/map.go b/internal/sync/map.go index 333e5e25686..25bb07f071c 100644 --- a/internal/sync/map.go +++ b/internal/sync/map.go @@ -3,5 +3,5 @@ package sync import gache "github.com/kpango/gache/v2" type Map[K comparable, V any] struct { - gache.Map[K,V] + gache.Map[K, V] }