Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Add dummy Debug instance to authority discovery service. #9156

Merged
3 commits merged into from
Jun 22, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions client/authority-discovery/src/service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@
// You should have received a copy of the GNU General Public License
// along with this program. If not, see <https://www.gnu.org/licenses/>.

use std::fmt::Debug;

use crate::ServicetoWorkerMsg;

use futures::channel::{mpsc, oneshot};
Expand All @@ -30,6 +32,12 @@ pub struct Service {
to_worker: mpsc::Sender<ServicetoWorkerMsg>,
}

impl Debug for Service {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
f.debug_tuple("AuthorityDiscoveryService").finish()
}
}

/// A [`Service`] allows to interact with a [`crate::Worker`], e.g. by querying the
/// [`crate::Worker`]'s local address cache for a given [`AuthorityId`].
impl Service {
Expand Down