Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion audit/hashstructure.go
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ type hashWalker struct {
// we can quickly compare in hashWalker.Struct. We create an empty/invalid
// time.Time{} so we don't need to incur any additional startup cost vs.
// Now() or Unix().
var hashTimeType = reflect.TypeOf(time.Time{})
var hashTimeType = reflect.TypeFor[time.Time]()

func (w *hashWalker) Enter(loc reflectwalk.Location) error {
w.loc = append(w.loc, loc)
Expand Down
4 changes: 2 additions & 2 deletions sdk/database/helper/connutil/sql.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ import (
"github.com/hashicorp/vault/sdk/helper/pluginutil"
"github.com/jackc/pgx/v4"
"github.com/jackc/pgx/v4/stdlib"
"github.com/jackc/pgx/v5"
"github.com/mitchellh/mapstructure"
)

Expand Down Expand Up @@ -83,8 +84,7 @@ type SQLConnectionProducer struct {

// This provides the field names for SQLConnectionProducer for field validation in the framework handler.
func SQLConnectionProducerFieldNames() map[string]any {
scp := &SQLConnectionProducer{}
rType := reflect.TypeOf(scp).Elem()
rType := reflect.TypeFor[SQLConnectionProducer]()

fieldNames := make(map[string]any, rType.NumField())
for i := range rType.NumField() {
Expand Down