Skip to content

Commit

Permalink
Query, Header Default Value Tag Feature #2699
Browse files Browse the repository at this point in the history
add more test Cases
  • Loading branch information
ReneWerner87 committed Jan 5, 2024
1 parent fc9ed03 commit 0102600
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions utils/default.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,9 @@ func tagHandlers(field reflect.Value, tagValue string) {
}

func setDefaultForSlice(field reflect.Value, tagValue string, elemType reflect.Type) {
mu.Lock()
defer mu.Unlock()
// TODO: produce deadlock because of mutex hirachy
//mu.Lock()
//defer mu.Unlock()

items := strings.Split(tagValue, ",")
slice := reflect.MakeSlice(reflect.SliceOf(elemType), 0, len(items))
Expand Down

0 comments on commit 0102600

Please sign in to comment.