What type of injury? Ankle, knee...?
I had ankle surgery about two years ago. Best advice i can give is follow the doctors directions, do the PT and don’t come back too soon, that’s a good way to make your injury worse. Aside from that try to maintain a decent diet while your laid up, do some type of excercise if your injury permits. When your cleared to skate again take it easy to start out, and progress as you feel comfortable. I was not able to walk for 4 months and couldn’t skate for 6. It took me another few months to feel back to 100%, I’d say 30% was physical the other 70% being scared mentally.