Skip to content

Commit

Permalink
fix: union missing extra (#232)
Browse files Browse the repository at this point in the history
  • Loading branch information
ztjryg4 authored Sep 20, 2024
1 parent da7b7af commit 2bac1d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion thrift_reflection/descriptor_register.go
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ func registerGlobalUUID(fd *FileDescriptor, uuid string) {
structs = append(structs, fd.Structs...)
structs = append(structs, fd.Unions...)
structs = append(structs, fd.Exceptions...)
for _, strct := range fd.Structs {
for _, strct := range structs {
addExtraToDescriptor(uuid, strct)
for _, f := range strct.Fields {
addExtraToDescriptor(uuid, f)
Expand Down

0 comments on commit 2bac1d3

Please sign in to comment.