The data about peers is coming from iroha_p2p and available at all times. It is only an implementation detail that the most convenient way for iroha_torii to get access to it is through the Telemetry component of iroha_core.
I suggest retrieve peers in iroha_torii bypassing Telemetry, by directly injecting the watch::Receiver into the Torii. Thus, /peers endpoint would not be feature-gated by the telemetry feature.
The data about peers is coming from
iroha_p2pand available at all times. It is only an implementation detail that the most convenient way foriroha_toriito get access to it is through theTelemetrycomponent ofiroha_core.I suggest retrieve peers in
iroha_toriibypassingTelemetry, by directly injecting thewatch::Receiverinto the Torii. Thus,/peersendpoint would not be feature-gated by thetelemetryfeature.