From dc5660728ed311b35571ee74e6e5884e737273ea Mon Sep 17 00:00:00 2001 From: Jedrzej Stuczynski Date: Thu, 12 Dec 2019 10:45:06 +0000 Subject: [PATCH] Moved dummy message content to requests crate --- sfw-provider-requests/src/lib.rs | 3 +++ src/provider/mod.rs | 2 -- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/sfw-provider-requests/src/lib.rs b/sfw-provider-requests/src/lib.rs index cd185ec6a6..0eed38a99a 100644 --- a/sfw-provider-requests/src/lib.rs +++ b/sfw-provider-requests/src/lib.rs @@ -1,6 +1,9 @@ const PULL_REQUEST_MESSAGE_PREFIX: [u8; 2] = [1, 0]; const REGISTER_MESSAGE_PREFIX: [u8; 2] = [0, 1]; +pub const DUMMY_MESSAGE_CONTENT: &[u8] = + b"[DUMMY MESSAGE] Wanting something does not give you the right to have it."; + // TODO: how to do it more nicely, considering all sfw-provider-requests implement same trait that is exercised here? #[derive(Debug)] pub enum ProviderRequests { diff --git a/src/provider/mod.rs b/src/provider/mod.rs index a7e56b6afe..c0e44cc098 100644 --- a/src/provider/mod.rs +++ b/src/provider/mod.rs @@ -16,8 +16,6 @@ use tokio::runtime::Runtime; const STORED_MESSAGE_FILENAME_LENGTH: usize = 16; const MESSAGE_RETRIEVAL_LIMIT:usize = 2; -const DUMMY_MESSAGE_CONTENT: &[u8] = b"Wanting something does not give you the right to have it."; - // TODO: this will probably need to be moved elsewhere I imagine // DUPLICATE WITH MIXNODE CODE!!! #[derive(Debug)]