Don't perform REST calls when remote PeerInfo not available

Replace PeerInfo with Optional<PeerInfo>. When the PeerInfo value
is not available don't even try sending REST calls.

Assuming we are going to implement automatic remote peer discovery
the remote peer info may be unavailable when the remote peer is shut
down.

Change-Id: I8a4667328eedbab393ae672f54a8c2aef6c639ca
5 files changed
tree: 2bd9b6f44541e3123a3c6590f24d8c8c02b081a0
  1. lib/
  2. src/
  3. .buckconfig
  4. .gitignore
  5. .mailmap
  6. BUCK