You could have a deep vein clot. That's serious and you would need eval for that right away. The other possibility is nerve injury
or maybe a regional block was done? You should have a set of post op instructions. Read that and then contact your ortho doc, discuss what to do.