Skip to content

Commit

Permalink
fix typo (#21)
Browse files Browse the repository at this point in the history
  • Loading branch information
cybwan authored Jul 14, 2023
1 parent a1b0d7f commit fc9a4c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/connector/sink.go
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ func (s *Sink) UpsertEndpoints(key string, raw interface{}) error {
}
if strings.HasPrefix(k, MeshEndpointAddrAnnotation) {
ipIntStr := strings.TrimPrefix(k, fmt.Sprintf("%s-", MeshEndpointAddrAnnotation))
if ipInt, err := strconv.ParseUint(ipIntStr, 10, 32); err != nil {
if ipInt, err := strconv.ParseUint(ipIntStr, 10, 32); err == nil {
ip := utils.Int2IP4(uint32(ipInt))
endpointSubset.Addresses = append(endpointSubset.Addresses, apiv1.EndpointAddress{IP: ip.To4().String()})
}
Expand Down

0 comments on commit fc9a4c3

Please sign in to comment.