infoFromHost function

AddrInfo infoFromHost(
  1. Host h
)

InfoFromHost returns an AddrInfo struct with the Host's ID and all of its Addrs.

Implementation

AddrInfo infoFromHost(Host h) {
  return AddrInfo(
    h.id,
    h.addrs,
  );
}