Swollen armpit

So I finished breast feeding my second child about 4 months ago. My armpit was swollen and still is. Should I be worried. I am scared it’s cancer.... There was a pea sized little hard lump inside I had it looked at they said not to be worried. But now my armpit is swollen the doctors said it is from breast feeding but I am not breast feeding anymore....