Browse Source

report EOF error

pull/5637/head
Chris Lu 11 months ago
parent
commit
90fcde0e26
  1. 4
      weed/mq/client/pub_client/scheduler.go

4
weed/mq/client/pub_client/scheduler.go

@ -161,8 +161,8 @@ func (p *TopicPublisher) doPublishToPartition(job *EachPartitionPublishJob) erro
for {
ackResp, err := publishClient.Recv()
if err != nil {
e, ok := status.FromError(err)
if ok && e.Code() == codes.Unknown && e.Message() == "EOF" {
e, _ := status.FromError(err)
if e.Code() == codes.Unknown && e.Message() == "EOF" {
return
}
publishClient.Err = err

Loading…
Cancel
Save