Ended a friendship of 20+ years

I [23M] ended a friendship that lasted since I was toddler today. Idk if it's permanent and idk if I wanna get into the specifics but I've been dealing with a lot of anxious attachment issues and was living in constant stress for the past 6 months related to this friend. Idk if this decision is necessarily permanent but I'd like some advice while I let time heal things.