[FOLD] Cherry pick ResourceManager Peer.cpp Peer.h