chore(peer_server): adjust code to make it more clear