Breastfeeding and drinking

When drinking do you wait a couple hours from the time you started drinking or from the time you took you last drink? So let’s say I slowly drank 2 margaritas over 3 hours am I good to nurse or do I need to wait 2 hours after I finished my last drink?