Skip to content

Commit ea911f5

Browse files
committed
lint
Signed-off-by: Brett Jones <blockloop@users.noreply.github.com>
1 parent 3cd025c commit ea911f5

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

pkg/receive/handler.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -526,7 +526,7 @@ type peerGroup struct {
526526
cache map[string]storepb.WriteableStoreClient
527527
m sync.Mutex
528528

529-
// dialer is used for testing
529+
// dialer is used for testing.
530530
dialer func(ctx context.Context, target string, opts ...grpc.DialOption) (conn *grpc.ClientConn, err error)
531531
}
532532

pkg/receive/handler_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,15 +143,15 @@ func newHandlerHashring(appendables []*fakeAppendable, replicationFactor uint64)
143143
}
144144
var handlers []*Handler
145145
// create a fake peer group where we manually fill the cache with fake addresses pointed to our handlers
146-
// This removes the network from the tests and creates a more consistent testing harness
146+
// This removes the network from the tests and creates a more consistent testing harness.
147147
peers := &peerGroup{
148148
dialOpts: nil,
149149
m: sync.Mutex{},
150150
cache: map[string]storepb.WriteableStoreClient{},
151151
dialer: func(context.Context, string, ...grpc.DialOption) (*grpc.ClientConn, error) {
152152
// dialer should never be called since we are creating fake clients with fake addresses
153153
// this protects against some leaking test that may attempt to dial random IP addresses
154-
// which may pose a security risk
154+
// which may pose a security risk.
155155
return nil, errors.New("unexpected dial called in testing")
156156
},
157157
}

0 commit comments

Comments
 (0)