Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion db/blip_handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -629,7 +629,7 @@ func (bh *blipHandler) sendBatchOfChanges(sender *blip.Sender, changeArray [][]a
bh.replicationStats.SendChangesCount.Add(int64(len(changeArray)))
// Spawn a goroutine to await the client's response:
go func(bh *blipHandler, sender *blip.Sender, response *blip.Message, changeArray [][]any, sendTime time.Time, dbCollection *DatabaseCollectionWithUser) {
if err := bh.handleChangesResponse(bh.loggingCtx, sender, response, changeArray, sendTime, dbCollection, bh.collectionIdx); err != nil {
if err := bh.handleChangesResponse(bh.loggingCtx, sender, response, changeArray, sendTime, dbCollection, bh.collectionIdx); err != nil && !errors.Is(err, ErrClosedBLIPSender) {
Copy link

Copilot AI Nov 13, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[nitpick] The condition is now complex with multiple checks on a single line. Consider extracting the error check to a separate variable for improved readability: if err := bh.handleChangesResponse(...); err != nil { if !errors.Is(err, ErrClosedBLIPSender) { ... } }

Copilot uses AI. Check for mistakes.
base.WarnfCtx(bh.loggingCtx, "Error from bh.handleChangesResponse: %v", err)
if bh.fatalErrorCallback != nil {
bh.fatalErrorCallback(err)
Expand Down