Did I make the right choice?!

Kenz
So about a week ago I broke up with my boyfriend because I couldn't do the distance anymore. I'm needy in the sense of wanting to see my SO more than one day every 3 weeks. Ever since I did it I wake up crying. I'm losing sleep, can't eat and I'm an emotional wreck. I'm really not sure what to do because I know I won't be happy if we get back together because I'll not see him again but at the same time I keep thinking.. Did I make the right choice by breaking up with him?