PT-7116 Updated MyState results

This commit is contained in:
Carlos Salguero
2021-10-20 10:11:49 -03:00
parent 951a333c81
commit 726d22c2f4

View File

@@ -481,7 +481,7 @@ func MyState(ctx context.Context, client *mongo.Client) (int, error) {
err := client.Database("admin").RunCommand(ctx, bson.M{"getDiagnosticData": 1}).Decode(&ms)
if _, ok := err.(topology.ServerSelectionError); ok {
return 0, nil
return 0, err
}
if err != nil {
return 0, err