Anybody went to something similar?

So the other day I went to the doctor signs I felt like I was leaking. The doctor check my vagina to check if my cervix is close. To find out everything is good. But I was told I have a lot of discharge and a yeast infection. Kinda scared because I was confused. So he gave me this prescription to pick up my at my pharmacy some cream name “terconazole” for the next 3 nights before Bed time.