Skip to content

Commit

Permalink
client: add extra appender read of EOF
Browse files Browse the repository at this point in the history
  • Loading branch information
jgraettinger committed May 31, 2020
1 parent 8f0e3ca commit 5ccd0ce
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions broker/client/appender.go
Expand Up @@ -102,6 +102,10 @@ func (a *Appender) Close() (err error) {
default:
err = errors.New(a.Response.Status.String())
}

// Extra RecvMsg to explicitly read EOF, as a work-around for
// https://github.com/grpc-ecosystem/go-grpc-prometheus/issues/92
_ = a.stream.RecvMsg(new(pb.AppendResponse))
}

if err != nil {
Expand Down

0 comments on commit 5ccd0ce

Please sign in to comment.