You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 4, 2022. It is now read-only.
fix(read-preference): correct server sort for nearest selection
The server sorting during `nearest` server selection was incorrectly
using a greater-than sign, instead of following the rules of array
sort comparitors. This fixes the issue for `pickNearest` as well
as `pickNearestMaxStalenessSeconds`, and contributes tests for
both paths.
NODE-1577
0 commit comments