go-playground / validator

:100:Go Struct and Field validation, including Cross Field, Cross Struct, Map, Slice and Array diving
MIT License
16.05k stars 1.29k forks source link

Unnecessary lock operation for reading from cache in extractStructCache method - fixed double checknig/reading cStruct in validateStruct method #1236

Open amirkaramiit opened 4 months ago

amirkaramiit commented 4 months ago

Fixes Or Enhances

Make sure that you've checked the boxes below before you submit PR:

@go-playground/validator-maintainers

coveralls commented 4 months ago

Coverage Status

coverage: 74.167% (-0.005%) from 74.172% when pulling e83b4030e567b76564ceec982218475b875ced76 on amirkaramiit:validator-extractCStruct-get-duplicate into b328f72e15814aba56e018c06675b8d679ad6e90 on go-playground:master.