Skip to content

Commit a91142e

Browse files
committed
fix time out bug setupCaluerAndSetter
1 parent be5e79f commit a91142e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

schema/field.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -462,7 +462,7 @@ func (field *Field) setupValuerAndSetter() {
462462
default:
463463
field.ValueOf = func(ctx context.Context, v reflect.Value) (interface{}, bool) {
464464
v = reflect.Indirect(v)
465-
for v.Kind() == reflect.Interface {
465+
if v.Kind() == reflect.Interface {
466466
v = reflect.Indirect(v)
467467
}
468468
for _, fieldIdx := range field.StructField.Index {

0 commit comments

Comments
 (0)