diff --git a/src/command/repository.rs b/src/command/repository.rs index 27b3aae..e1f5423 100644 --- a/src/command/repository.rs +++ b/src/command/repository.rs @@ -112,6 +112,4 @@ pub struct RepositoryIssue { } #[derive(Clone, Serialize, Deserialize)] -pub struct RepositoryInfoRequest { - pub info: RepositoryView, -} +pub struct RepositoryInfoRequest; diff --git a/src/connection.rs b/src/connection.rs index b4341b8..068e57f 100644 --- a/src/connection.rs +++ b/src/connection.rs @@ -191,7 +191,8 @@ pub async fn connection_worker( .unwrap(); } RepositoryRequest::IssuesCount(_) => { - let response: IssuesCountResponse = IssuesCountResponse { count: 727420 }; + let response: IssuesCountResponse = + IssuesCountResponse { count: 727420 }; socket .send(Message::Binary( diff --git a/src/lib.rs b/src/lib.rs new file mode 100644 index 0000000..8b29ebe --- /dev/null +++ b/src/lib.rs @@ -0,0 +1,8 @@ +pub mod command; +pub mod connection; +pub mod handshake; +pub mod listener; +pub mod model; + +#[macro_use] +extern crate tracing; diff --git a/src/main.rs b/src/main.rs index e66020d..e1d9a01 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,6 +1,7 @@ use std::{error::Error, net::SocketAddr, sync::Arc}; use connection::{connection_worker, Connections, RawConnection, UnestablishedConnection}; +use giterated_daemon::{connection, listener}; use listener::Listeners; use tokio::{ io::{AsyncRead, AsyncWrite}, @@ -9,12 +10,6 @@ use tokio::{ }; use tokio_tungstenite::{accept_async, WebSocketStream}; -pub mod command; -pub mod connection; -pub mod handshake; -pub mod listener; -pub mod model; - #[macro_use] extern crate tracing;