Small changes for merging
This commit is contained in:
parent
665507653e
commit
9f8ff96d1b
|
@ -101,7 +101,7 @@ pub struct Gateway {
|
||||||
pub websocket_tx: Arc<Mutex<SplitSink<WebSocketStream<MaybeTlsStream<TcpStream>>, tokio_tungstenite::tungstenite::Message>>>
|
pub websocket_tx: Arc<Mutex<SplitSink<WebSocketStream<MaybeTlsStream<TcpStream>>, tokio_tungstenite::tungstenite::Message>>>
|
||||||
}
|
}
|
||||||
|
|
||||||
impl<'a> Gateway {
|
impl Gateway {
|
||||||
pub async fn new(
|
pub async fn new(
|
||||||
websocket_url: String,
|
websocket_url: String,
|
||||||
) -> Result<GatewayHandle, tokio_tungstenite::tungstenite::Error> {
|
) -> Result<GatewayHandle, tokio_tungstenite::tungstenite::Error> {
|
||||||
|
|
|
@ -1,14 +1,13 @@
|
||||||
use crate::api::limits::Limits;
|
use crate::api::limits::Limits;
|
||||||
use crate::api::types::{InstancePolicies};
|
use crate::api::types::{InstancePolicies};
|
||||||
use crate::errors::{FieldFormatError, InstanceServerError};
|
use crate::errors::{FieldFormatError, InstanceServerError};
|
||||||
use crate::gateway::{GatewayHandle, Gateway};
|
|
||||||
use crate::limit::LimitedRequester;
|
use crate::limit::LimitedRequester;
|
||||||
use crate::URLBundle;
|
use crate::URLBundle;
|
||||||
|
|
||||||
|
|
||||||
use std::fmt;
|
use std::fmt;
|
||||||
#[derive(Debug)]
|
|
||||||
|
|
||||||
|
#[derive(Debug)]
|
||||||
/**
|
/**
|
||||||
The [`Instance`] what you will be using to perform all sorts of actions on the Spacebar server.
|
The [`Instance`] what you will be using to perform all sorts of actions on the Spacebar server.
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Reference in New Issue