US Navy Lt. Commander Charged with a lot of Espionage

About 8 months ago, Lieutenant Commander Edward Lin of the U.S. Navy was arrested on suspicion of espionage on this past Friday, April 8th, he was "charged with two counts of espionage, three counts of attempted espionage and five counts of communicating defense information."
Lt. Cmdr. Lin
Mr. Edward Lin was native born in Taiwan and moved to the United States at the age of 14.  He worked with the EP3-E Aries II signals intelligence aircraft, according to Reuters, and reportedly shared information with his home country of Taiwan or even China, but it was reportedly still under investigation.  Lin was also charged with one count of prostitution and one count of adultery.  

Same dude.

The details of the case have not been released but Mr. Lin's position in the Navy and his activities could cost a lot of jail time.  The last big case of espionage in the Navy was when John Anthony Walker was sentenced to three life sentences back during the Cold War in 1985.  He led an operation that sent information to the Soviet Union and it was considered one of the biggest security breaches of the Cold War.  What do you think should be done with treasonous U.S. Military officials?  Is there a difference between wartime espionage (or quasi wartime) and peacetime espionage?  Does it depend on the information being leaked or should all types of spying be punished harshly?  Is this hella hypocritical for the U.S. to crack down on spying when they spy on its citizens secretly (until Ed Snowden)?

http://www.reuters.com/article/us-usa-china-espionage-idUSKCN0X80DL
http://www.cbsnews.com/news/us-navy-officer-charged-with-spying/
http://www.cnn.com/2016/04/10/politics/navy-officer-charged-with-espionage/