Small changes for merging

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

View File

@ -53,4 +53,4 @@ mod instance_policies_schema_test {
let _schema = test_instance.instance_policies_schema().await.unwrap(); let _schema = test_instance.instance_policies_schema().await.unwrap();
} }
} }

View File

@ -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> {

View File

@ -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.
*/ */