Please know I say the following not being a dick.
Cry me a fucking river bro, you're talking about a couple month out due to an injury and surgery!?
Listen man, I spent the last 6 YEARS,going through this. Ended up injured severely at work, fractured humerus, torn biceps tendon, labrum torn in 2 places. First doctor didn't see or repair anything but one of the labrum tears, unknown to me. Right out of surgery I was telling them it still wasn't right, spent almost a year in Pt trying to get better and heal only to find out I'd have to have another surgery since the first moron missed (along with 3 mris and X-rays) all the other stuff in my shoulder. Found a new doc, had the second surgery, only to have to have another surgery 5 weeks later. I ended up with a permanent nerve condition called RSD, it is the most painful form of pain know to man, highest pain on the McGill pain index. This is a permanent condition, one that I live with every day. Also. Because of the first doctor missing the humerus fracture, that bone was in my shoulder floating and grinding around for almost a year, caused me such bad arthritis they want to replace my entire shoulder joint. (I'm 33) I spent almost 6 years going through this, being prescribed HEAVY doses of narcotics, nerve pain meds, antidepressants etc, shit at one point they had me on 18 different meds. Told me I'd never work out again,never do a lot of things. I lost my career, my fiancée of 10 years, friends and family because of all of this. I've been b ack training in the gym now for a little over a year, and I'm in the best shape of my life. I live in excruciating pain everyday and the RSD causes me so many other problems, like memory issues, fatigue, depression, you name it. I deal with it the best I can each day. So my point to all this, is it can always be so much worse, I know my life could be worse as well, I could have lost my arm all together, or whatever. I understand you being bummed about losing some gains, and all that, but its temporary. You'll do what needs to be done, and you'll get back into the gym, and life will carry on. You need to focus on what's important, and nothing else. The gym will be there, everything else is up to you and how you deal with this situation.