Skip to content

Commit 189cd2e

Browse files
committed
Receive: capnproto replication treat all connect errors as Unavailable
Signed-off-by: Michał Mazur <[email protected]>
1 parent 1754ff1 commit 189cd2e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/receive/writecapnp/client.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ func (r *RemoteWriteClient) RemoteWrite(ctx context.Context, in *storepb.WriteRe
6868

6969
func (r *RemoteWriteClient) writeWithReconnect(ctx context.Context, numReconnects int, in *storepb.WriteRequest) (*storepb.WriteResponse, error) {
7070
if err := r.connect(ctx); err != nil {
71-
return nil, err
71+
return nil, status.Errorf(codes.Unavailable, err.Error())
7272
}
7373

7474
result, release := r.writer.Write(ctx, func(params Writer_write_Params) error {

0 commit comments

Comments
 (0)