go-playground / validator

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

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

Closed amirkaramiit closed 3 months ago

amirkaramiit commented 9 months ago

Fixes Or Enhances

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

@go-playground/validator-maintainers

coveralls commented 9 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.