From 18e77a87a50ce203ffee6891dae69a505162a0a7 Mon Sep 17 00:00:00 2001 From: Tony Garnock-Jones Date: Mon, 30 Aug 2021 12:07:30 +0200 Subject: [PATCH] Remove unneeded SERVICE_NAME constant in debt_reporter --- syndicate-server/src/services/debt_reporter.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/syndicate-server/src/services/debt_reporter.rs b/syndicate-server/src/services/debt_reporter.rs index ec8d351..3903edc 100644 --- a/syndicate-server/src/services/debt_reporter.rs +++ b/syndicate-server/src/services/debt_reporter.rs @@ -7,10 +7,8 @@ use syndicate::schemas::dataspace::Observe; use crate::schemas::internal_services; -const SERVICE_NAME: &str = "debt-reporter"; - pub fn on_demand(t: &mut Activation, ds: Arc) { - t.spawn(syndicate::name!("on_demand", service = SERVICE_NAME), move |t| { + t.spawn(syndicate::name!("on_demand", module = module_path!()), move |t| { let monitor = entity(()) .on_asserted_facet({ let ds = Arc::clone(&ds);