# Spatial Hashing is set up.. now how should I go about actual collision logic?

So I have a spatial hashing system set up and it works. It puts players in buckets based on their x/y/width/height

So I was going to check collisions on each frame when I loop through the entity for updating their physics. But how would I go about duplicate collisions? Say I'm checking for player a, which is in the same bucket as bullet a.. I check if there's a collision and there is, should I do the collision logic right there? Or should I add the collision to a list and iterate through that list at the end of the frame to handle the logic for each collision? This way I can also apply logic to prevent duplicate collisions. Or should I just do all the logic right there and then when the initial collision is made?

Check each entity against every entity that comes after it in the list, to prevent duplicate collisions. So if you are on entity n, check it against n+1, n+2 etc. to the end of the list.