diff --git a/go/vt/vtgate/planbuilder/builder.go b/go/vt/vtgate/planbuilder/builder.go index 221151d892f..1733061a082 100644 --- a/go/vt/vtgate/planbuilder/builder.go +++ b/go/vt/vtgate/planbuilder/builder.go @@ -48,7 +48,7 @@ type builder interface { // execute before this one. Reorder(int) - // Primitve returns the underlying primitive. + // Primitive returns the underlying primitive. Primitive() engine.Primitive // First returns the first builder of the tree, diff --git a/go/vt/vtgate/vindexes/lookup_unicodeloosemd5_hash_test.go b/go/vt/vtgate/vindexes/lookup_unicodeloosemd5_hash_test.go index 54eeb5f047c..a4d1fc0281c 100644 --- a/go/vt/vtgate/vindexes/lookup_unicodeloosemd5_hash_test.go +++ b/go/vt/vtgate/vindexes/lookup_unicodeloosemd5_hash_test.go @@ -27,10 +27,12 @@ import ( topodatapb "vitess.io/vitess/go/vt/proto/topodata" ) -const hashed10 uint64 = 17563797831108199066 -const hashed20 uint64 = 8729390916138266389 -const hashed30 uint64 = 1472608112194674795 -const hashed40 uint64 = 16576388050845489136 +const ( + hashed10 uint64 = 17563797831108199066 + hashed20 uint64 = 8729390916138266389 + hashed30 uint64 = 1472608112194674795 + hashed40 uint64 = 16576388050845489136 +) func TestLookupUnicodeLooseMD5HashMap(t *testing.T) { lookup := createLookup(t, "lookup_unicodeloosemd5_hash", false) diff --git a/go/vt/vtgate/vtgateconntest/client.go b/go/vt/vtgate/vtgateconntest/client.go index 17f117ce9ab..a0fdb835d10 100644 --- a/go/vt/vtgate/vtgateconntest/client.go +++ b/go/vt/vtgate/vtgateconntest/client.go @@ -53,8 +53,10 @@ type fakeVTGateService struct { errorWait chan struct{} } -const expectedErrMatch string = "test vtgate error" -const expectedCode vtrpcpb.Code = vtrpcpb.Code_INVALID_ARGUMENT +const ( + expectedErrMatch string = "test vtgate error" + expectedCode vtrpcpb.Code = vtrpcpb.Code_INVALID_ARGUMENT +) var errTestVtGateError = vterrors.New(expectedCode, expectedErrMatch)