Skip to content

Commit

Permalink
fix(nats-subscribers): fix gateway nats subscribers logic (#535)
Browse files Browse the repository at this point in the history
  • Loading branch information
VaibhavPage authored Mar 10, 2020
1 parent 60ee618 commit bfc53e6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gateways/client/cloud-events.go
Original file line number Diff line number Diff line change
Expand Up @@ -116,9 +116,9 @@ func (gatewayContext *GatewayContext) dispatchEvent(gatewayEvent *gateways.Event
}
}

// http subscribers
// NATS subscribers
for _, subscriber := range gatewayContext.gateway.Spec.Subscribers.NATS {
client, ok := gatewayContext.httpSubscribers[subscriber.Name]
client, ok := gatewayContext.natsSubscribers[subscriber.Name]
if !ok {
gatewayContext.logger.WithField("subscriber", subscriber).Warnln("unable to send event. no client found for the subscriber")
completeSuccess = false
Expand Down

0 comments on commit bfc53e6

Please sign in to comment.