diff options
author | Henauxg <19689618+Henauxg@users.noreply.github.com> | 2023-01-05 19:02:18 +0100 |
---|---|---|
committer | gilles henaux <gill.henaux@gmail.com> | 2023-01-11 14:47:28 +0100 |
commit | 14a26107031ddf10a86980e0f8ee588ac8b20d85 (patch) | |
tree | a95e451c18b48c8fcfa89869451a28498eb888a8 /src/shared.rs | |
parent | e17bb3c4c59aca95e4eb9db24003e20509352b93 (diff) |
[client & shared] Rework channels and ChannelId
Diffstat (limited to 'src/shared.rs')
-rw-r--r-- | src/shared.rs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/shared.rs b/src/shared.rs index c4803a8..34215f5 100644 --- a/src/shared.rs +++ b/src/shared.rs @@ -5,12 +5,15 @@ use bevy::prelude::{Deref, DerefMut, Resource}; use rcgen::RcgenError; use tokio::runtime::Runtime; +use self::channel::ChannelId; + pub const DEFAULT_MESSAGE_QUEUE_SIZE: usize = 150; pub const DEFAULT_KILL_MESSAGE_QUEUE_SIZE: usize = 10; pub const DEFAULT_KEEP_ALIVE_INTERVAL_S: u64 = 4; pub type ClientId = u64; -pub type ChannelId = u64; + +pub mod channel; #[derive(Resource, Deref, DerefMut)] pub(crate) struct AsyncRuntime(pub(crate) Runtime); |