Skip to content

Commit baed3d5

Browse files
authored
pkg/stream: fix the error that could occur due to nil option (#331)
1 parent 1e03806 commit baed3d5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/stream/environment.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -573,7 +573,7 @@ func (cc *environmentCoordinator) newProducer(leader *Broker, tcpParameters *TCP
573573
if err != nil {
574574
return nil, err
575575
}
576-
clientResult = cc.newClientForProducer(options.ClientProvidedName, leader, tcpParameters, saslConfiguration, rpcTimeout)
576+
clientResult = cc.newClientForProducer(clientProvidedName, leader, tcpParameters, saslConfiguration, rpcTimeout)
577577
err = clientResult.connect()
578578
if err != nil {
579579
return nil, err

0 commit comments

Comments
 (0)