report EOF error
This commit is contained in:
@@ -161,8 +161,8 @@ func (p *TopicPublisher) doPublishToPartition(job *EachPartitionPublishJob) erro
|
|||||||
for {
|
for {
|
||||||
ackResp, err := publishClient.Recv()
|
ackResp, err := publishClient.Recv()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
e, ok := status.FromError(err)
|
e, _ := status.FromError(err)
|
||||||
if ok && e.Code() == codes.Unknown && e.Message() == "EOF" {
|
if e.Code() == codes.Unknown && e.Message() == "EOF" {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
publishClient.Err = err
|
publishClient.Err = err
|
||||||
|
|||||||
Reference in New Issue
Block a user