From 156219adef5fafe9e17fb099f641253f31f1b191 Mon Sep 17 00:00:00 2001 From: Sam Lewis Date: Tue, 4 Oct 2022 21:11:08 +1100 Subject: [PATCH] discover: Implement Clone for Change Implements Clone for discover::Change, if the underlying key and value both implement clone. This is convenient for use-cases where a single change needs to be duplicated, and sent to multiple discover streams. --- tower/src/discover/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tower/src/discover/mod.rs b/tower/src/discover/mod.rs index ec51f1581..fc137daef 100644 --- a/tower/src/discover/mod.rs +++ b/tower/src/discover/mod.rs @@ -97,7 +97,7 @@ where } /// A change in the service set. -#[derive(Debug)] +#[derive(Debug, Clone)] pub enum Change { /// A new service identified by key `K` was identified. Insert(K, V),