Skip to content

Commit

Permalink
REALMC-10951: add nil check in changestreamoptions for CursorBatchSize (
Browse files Browse the repository at this point in the history
#9)

(cherry picked from commit c07ccfd)
  • Loading branch information
tsedgwick authored and dpish committed Jan 23, 2024
1 parent 2c1ae88 commit 2fae649
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions mongo/options/changestreamoptions.go
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,9 @@ func MergeChangeStreamOptions(opts ...*ChangeStreamOptions) *ChangeStreamOptions
if cso.CustomPipeline != nil {
csOpts.CustomPipeline = cso.CustomPipeline
}
if cso.CursorBatchSize != nil {
csOpts.CursorBatchSize = cso.CursorBatchSize
}
}

return csOpts
Expand Down

0 comments on commit 2fae649

Please sign in to comment.