Skip to content

Commit

Permalink
return clientList instead of nil
Browse files Browse the repository at this point in the history
Signed-off-by: Hiranmoy Das Chowdhury <[email protected]>
  • Loading branch information
HiranmoyChowdhury committed Jun 4, 2024
1 parent 2c6f950 commit 324ecbc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pgbouncer/kubedb_client_builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -206,8 +206,9 @@ func GetXormClientList(kc client.Client, pb *api.PgBouncer, ctx context.Context,
}

clientlist.WG.Wait()

if len(clientlist.List) != int(*pb.Spec.Replicas) {
return nil, fmt.Errorf("Failed to generate Xorm Client List")
return clientlist, fmt.Errorf("Failed to generate Xorm Client List")
}

return clientlist, nil
Expand Down

0 comments on commit 324ecbc

Please sign in to comment.