Skip to content

Commit 50e5938

Browse files
committed
bad merge
1 parent d44a532 commit 50e5938

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

internal/verifier/mongos_refresh.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff 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
},

0 commit comments

Comments
 (0)