Skip to content

Commit

Permalink
fix overload id
Browse files Browse the repository at this point in the history
  • Loading branch information
goccy committed Feb 18, 2025
1 parent 2563bfa commit c6737de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion grpc/federation/cel.go
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ func EnumAccessorOptions(enumName string, nameToValue map[string]int32, valueToN
),
cel.Function(
fmt.Sprintf("%s.from", enumName),
cel.Overload(fmt.Sprintf("%[1]s_name_int_%[1]s", enumName), []*cel.Type{cel.IntType}, cel.IntType,
cel.Overload(fmt.Sprintf("%s_name_int_int", enumName), []*cel.Type{cel.IntType}, cel.IntType,
cel.UnaryBinding(func(self ref.Val) ref.Val {
return self
}),
Expand Down

0 comments on commit c6737de

Please sign in to comment.