I'm eating in the restaurant right now.
I'm eating in a restaurant right now.
I'm eating at the restaurant right now.
I'm eating at a restaurant right now.
All are correct. What's the context?
The choice is related to the context. It's not a randomly chosen personal preference. Do we want to emphasize that we are at the location of the restaurant or that we are inside the restaurant? The situation in which we want to tell someone our location is probably more common. I'm eating at the restaurant, not shopping at the store. I'm eating in the restaurant, not outside on the patio.