File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -59,10 +59,10 @@ func RefreshAllMongosInstances(
5959 return err
6060 }
6161
62- err = r .RunForTransientErrorsOnly (
62+ err = r .Run (
6363 ctx ,
6464 l ,
65- func (ri * retry.Info ) error {
65+ func (ctx context. Context , _ * retry.FuncInfo ) error {
6666 // Query a collection on the config server with linearizable read concern to advance the config
6767 // server primary's majority-committed optime. This populates the $configOpTime.
6868 opts := options .Database ().SetReadConcern (readconcern .Linearizable ())
@@ -173,10 +173,10 @@ func runListShards(
173173 client * mongo.Client ,
174174) (* mongo.SingleResult , error ) {
175175 var res * mongo.SingleResult
176- err := r .RunForTransientErrorsOnly (
176+ err := r .Run (
177177 ctx ,
178178 l ,
179- func (_ * retry.Info ) error {
179+ func (ctx context. Context , _ * retry.FuncInfo ) error {
180180 res = client .Database ("admin" ).RunCommand (ctx , bson.D {{"listShards" , 1 }})
181181 return res .Err ()
182182 },
You can’t perform that action at this time.
0 commit comments