Small changes for merging

This commit is contained in:
kozabrada123 2023-05-13 16:43:29 +02:00
parent 9a80f68787
commit a3969e8cb6
3 changed files with 3 additions and 4 deletions

View File

@ -101,7 +101,7 @@ pub struct Gateway {
pub websocket_tx: Arc<Mutex<SplitSink<WebSocketStream<MaybeTlsStream<TcpStream>>, tokio_tungstenite::tungstenite::Message>>>
}
impl<'a> Gateway {
impl Gateway {
pub async fn new(
websocket_url: String,
) -> Result<GatewayHandle, tokio_tungstenite::tungstenite::Error> {

View File

@ -1,14 +1,13 @@
use crate::api::limits::Limits;
use crate::api::types::{InstancePolicies};
use crate::errors::{FieldFormatError, InstanceServerError};
use crate::gateway::{GatewayHandle, Gateway};
use crate::limit::LimitedRequester;
use crate::URLBundle;
use std::fmt;
#[derive(Debug)]
#[derive(Debug)]
/**
The [`Instance`] what you will be using to perform all sorts of actions on the Spacebar server.
*/