Skip to content

Commit

Permalink
resolve linter errors
Browse files Browse the repository at this point in the history
  • Loading branch information
dwelch-spike committed Oct 16, 2024
1 parent bcbe147 commit 08e785b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
2 changes: 2 additions & 0 deletions protos/transact_service_vector_search_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ import grpc "google.golang.org/grpc"
// Wrapping this because mockgen doesn't support generating mocks
// for type aliases. The generated protobuf code uses type aliases
// THIS IS ONLY USED FOR TESTING
//
//nolint:revive,stylecheck // This is a generated type, ignore _ in name
type wrappedTransactService_VectorSearchClient interface {
grpc.ServerStreamingClient[Neighbor]
}
4 changes: 0 additions & 4 deletions testutils.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,10 +72,6 @@ func (suite *serverTestBaseSuite) TearDownSuite() {
goleak.VerifyNone(suite.T())
}

func ptr[T any](value T) *T {
return &value
}

func createFlagStr(name, value string) string {
return fmt.Sprintf("--%s %s", name, value)
}
Expand Down
4 changes: 4 additions & 0 deletions utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ import (
"github.com/aerospike/avs-client-go/protos"
)

func ptr[T any](value T) *T {
return &value
}

func createUserPassCredential(username, password string) *protos.Credentials {
return &protos.Credentials{
Username: username,
Expand Down

0 comments on commit 08e785b

Please sign in to comment.