[#316] endpoint: delete unreachable code

This commit is contained in:
Christian Schwarz
2020-05-20 12:57:54 +02:00
parent 292b85b5ef
commit 1bc731e782
5 changed files with 8 additions and 203 deletions
+1 -1
View File
@@ -342,7 +342,7 @@ func (p *Sender) SendCompleted(ctx context.Context, r *pdu.SendCompletedReq) (*p
msg := "cannot move replication cursor, keeping hold on `to` until successful"
log(ctx).WithError(err).Error(msg)
err = errors.Wrap(err, msg)
// it is correct to not release the hold if we can't move the cursor!
// it is correct to not destroy from and to step holds if we can't move the cursor!
return &pdu.SendCompletedRes{}, err
}
} else {