소스 검색

Merge pull request #280 from Shopify/disconnect-bad-broker

Drop the broker if we can't connect to it
Evan Huus 11 년 전
부모
커밋
34679b3128
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      producer.go

+ 1 - 0
producer.go

@@ -372,6 +372,7 @@ func (p *Producer) leaderDispatcher(topic string, partition int32, input chan *M
 		}
 
 		if _, err = leader.Connected(); err != nil {
+			p.client.disconnectBroker(leader)
 			return err
 		}