From bdae51653231b346530e2e0530a44ca492c25a30 Mon Sep 17 00:00:00 2001 From: Damir Vandic Date: Mon, 9 Jul 2018 17:17:09 +0200 Subject: [PATCH] Fix unused ctx in StructFilteredCtx --- validator_instance.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/validator_instance.go b/validator_instance.go index 400efcf..7a125f4 100644 --- a/validator_instance.go +++ b/validator_instance.go @@ -318,7 +318,7 @@ func (v *Validate) StructFilteredCtx(ctx context.Context, s interface{}, fn Filt vd.ffn = fn // vd.hasExcludes = false // only need to reset in StructPartial and StructExcept - vd.validateStruct(context.Background(), top, val, val.Type(), vd.ns[0:0], vd.actualNs[0:0], nil) + vd.validateStruct(ctx, top, val, val.Type(), vd.ns[0:0], vd.actualNs[0:0], nil) if len(vd.errs) > 0 { err = vd.errs