mirror of
https://github.com/pomerium/pomerium.git
synced 2025-08-03 08:50:42 +02:00
protoutil: add NewAny method for deterministic serialization (#2462)
This commit is contained in:
parent
b051c7db03
commit
6af0655206
20 changed files with 90 additions and 148 deletions
|
@ -39,10 +39,7 @@ func (t transformer) transformAny(dst, src *anypb.Any) error {
|
|||
return err
|
||||
}
|
||||
|
||||
a, err := anypb.New(dstMsg.Interface())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
a := NewAny(dstMsg.Interface())
|
||||
dst.TypeUrl = a.TypeUrl
|
||||
dst.Value = a.Value
|
||||
return nil
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue