How long does nipple piercings take to close up?

So over a year ago I got my nipple pierced but recently it got an infection. And my nipple started bleeding. I went to the doctor and she said that she will give me antibiotics but I will have to take it out too because the antibiotics will only work for so long and it will come back. So I took it out and she says to wait a few days and if the infection doesn’t go take the antibiotics. If t still doesn’t go then go back to her. So I’m wondering how long it takes for the piercing to close whilst it’s out and also has anyone any information on how to treat it whilst it’s infected?