Skip to content

Commit

Permalink
Switch kafka producer to use gatewayHost config
Browse files Browse the repository at this point in the history
  • Loading branch information
mjh1 committed Feb 11, 2025
1 parent b675d4a commit 1898848
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions cmd/livepeer/starter/kafka.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,16 @@ func startKafkaProducer(cfg LivepeerConfig) error {
return nil
}

var broadcasterEthAddress = ""
if cfg.EthAcctAddr != nil {
broadcasterEthAddress = *cfg.EthAcctAddr
var gatewayHost = ""
if cfg.GatewayHost != nil {
gatewayHost = *cfg.GatewayHost

Check warning on line 16 in cmd/livepeer/starter/kafka.go

View check run for this annotation

Codecov / codecov/patch

cmd/livepeer/starter/kafka.go#L14-L16

Added lines #L14 - L16 were not covered by tests
}

return lpmon.InitKafkaProducer(
*cfg.KafkaBootstrapServers,
*cfg.KafkaUsername,
*cfg.KafkaPassword,
*cfg.KafkaGatewayTopic,
broadcasterEthAddress,
gatewayHost,

Check warning on line 24 in cmd/livepeer/starter/kafka.go

View check run for this annotation

Codecov / codecov/patch

cmd/livepeer/starter/kafka.go#L24

Added line #L24 was not covered by tests
)
}

0 comments on commit 1898848

Please sign in to comment.