Not to worry, your eTA is valid for 6 months once it has been approved. As long as you can enter into Sri Lanka before that date, you’ll be able to visit.
If your eTA is expired however, and you’d like to enter Sri Lanka after the expiry date, you’ll need to apply for another one. Feel free to reach out to us and we’ll help you figure out your next steps.