Move HEARTBEAT_ACK_TIMEOUT
Delete events.rs Unify import Move HEARTBEAT_ACK_TIMEOUT since its not an OPCODE
This commit is contained in:
parent
5243eee256
commit
32b163a4c7
|
@ -1 +0,0 @@
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
use self::event::Events;
|
use self::event::Events;
|
||||||
|
|
||||||
use super::*;
|
use super::*;
|
||||||
use crate::types::{
|
use crate::types::{
|
||||||
self, AutoModerationRule, AutoModerationRuleUpdate, Channel, ChannelCreate, ChannelDelete,
|
self, AutoModerationRule, AutoModerationRuleUpdate, Channel, ChannelCreate, ChannelDelete,
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
use super::event::Events;
|
use super::{event::Events, *};
|
||||||
use super::*;
|
|
||||||
use crate::types::{self, Composite};
|
use crate::types::{self, Composite};
|
||||||
|
|
||||||
/// Represents a handle to a Gateway connection. A Gateway connection will create observable
|
/// Represents a handle to a Gateway connection. A Gateway connection will create observable
|
||||||
|
|
|
@ -2,6 +2,9 @@ use crate::types;
|
||||||
|
|
||||||
use super::*;
|
use super::*;
|
||||||
|
|
||||||
|
/// The amount of time we wait for a heartbeat ack before resending our heartbeat in ms
|
||||||
|
const HEARTBEAT_ACK_TIMEOUT: u64 = 2000;
|
||||||
|
|
||||||
/// Handles sending heartbeats to the gateway in another thread
|
/// Handles sending heartbeats to the gateway in another thread
|
||||||
#[allow(dead_code)] // FIXME: Remove this, once HeartbeatHandler is used
|
#[allow(dead_code)] // FIXME: Remove this, once HeartbeatHandler is used
|
||||||
#[derive(Debug)]
|
#[derive(Debug)]
|
||||||
|
|
|
@ -82,9 +82,6 @@ const GATEWAY_CALL_SYNC: u8 = 13;
|
||||||
/// See [types::LazyRequest]
|
/// See [types::LazyRequest]
|
||||||
const GATEWAY_LAZY_REQUEST: u8 = 14;
|
const GATEWAY_LAZY_REQUEST: u8 = 14;
|
||||||
|
|
||||||
/// The amount of time we wait for a heartbeat ack before resending our heartbeat in ms
|
|
||||||
const HEARTBEAT_ACK_TIMEOUT: u64 = 2000;
|
|
||||||
|
|
||||||
pub type ObservableObject = dyn Send + Sync + Any;
|
pub type ObservableObject = dyn Send + Sync + Any;
|
||||||
|
|
||||||
/// An entity type which is supposed to be updateable via the Gateway. This is implemented for all such types chorus supports, implementing it for your own types is likely a mistake.
|
/// An entity type which is supposed to be updateable via the Gateway. This is implemented for all such types chorus supports, implementing it for your own types is likely a mistake.
|
||||||
|
|
Loading…
Reference in New Issue