From be030f2a1f84aa201a9d78e9c852b429a3d08362 Mon Sep 17 00:00:00 2001 From: Daniel Sanchez Quiros Date: Wed, 28 Sep 2022 16:47:34 +0200 Subject: [PATCH] More general type aliases --- waku/src/general/mod.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/waku/src/general/mod.rs b/waku/src/general/mod.rs index 289baac..edf2a50 100644 --- a/waku/src/general/mod.rs +++ b/waku/src/general/mod.rs @@ -5,6 +5,7 @@ use serde::{Deserialize, Serialize}; pub type PubsubTopic = String; pub type ContentTopic = String; +pub type WakuMessageVersion = usize; /// JsonResponse wrapper. /// `go-waku` ffi returns this type as a `char *` as per the [specification](https://rfc.vac.dev/spec/36/#jsonresponse-type) @@ -38,7 +39,7 @@ pub struct WakuMessage { /// The content topic to be set on the message content_topic: ContentTopic, /// The Waku Message version number - version: usize, + version: WakuMessageVersion, /// Unix timestamp in nanoseconds timestamp: usize, }