Rest. If it was bad enough for surgery you wouldn't be able to even lift your arm let alone train.
It's probably inflamed. Ice, rest are the biggest things. Curcumin and fishoil can help.
I'm doing Neanderthal No More by Cressy and Robertson right now. It's exactly what I needed.
I tweaked my left shoulder benching, but ended up being rotators. So I've been taking it easy and doing that routine. Feels good and I'm improving my mobility in other areas at the same time.
Lots of posterior mass is being put on too. Win Win.