Skip to content

Commit

Permalink
fix: sidecar
Browse files Browse the repository at this point in the history
  • Loading branch information
w-h-a committed Aug 25, 2024
1 parent 5d32802 commit 688b0b7
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions sidecar/custom/sidecar.go
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ func (s *customSidecar) postEventToApp(event *sidecar.Event) error {
var rsp *sidecar.Event
var err error

url := fmt.Sprintf("%s:%s", s.options.ServiceName, s.options.ServicePort)
url := fmt.Sprintf("%s:%s", s.options.ServiceName, s.options.ServicePort.Port)

if s.options.ServicePort.Protocol == "rpc" {
// TODO: refactor
Expand Down Expand Up @@ -217,8 +217,6 @@ func (s *customSidecar) postEventToApp(event *sidecar.Event) error {
func (s *customSidecar) sendEventViaHttp(namespace, name, port, endpoint, baseUrl string, event *sidecar.Event) (*sidecar.Event, error) {
p, _ := strconv.Atoi(port)

log.Infof("NAMESPACE %s NAME %s PORT %s ENDPOINT %s URL %s EVENT %+v", namespace, name, port, endpoint, baseUrl, event)

req := s.options.HttpClient.NewRequest(
client.RequestWithNamespace(namespace),
client.RequestWithName(name),
Expand Down

0 comments on commit 688b0b7

Please sign in to comment.