Is 8 hours to long to keep a tampon in?

I was really tired and fell asleep with a tampon in and it was from 10:00 to 6:00am which is 8 hours. And I'm really worried of getting TSS. Did I keep the tampon in for too long?