Upstream: simplified some code that accesses peers.
Upstream: simplified some code that accesses peers.

No functional changes.

firebase/nginx,hy0kl/nginx,firebase/nginx,firebase/nginx,firebase/nginx,hy0kl/nginx,hy0kl/nginx