Changes
parent: tbd commit: 5ede041
Showing 4 changed files with 12 insertions and 10 deletions
src/command/repository.rs
@@ -112,6 +112,4 @@ pub struct RepositoryIssue { | ||
112 | 112 | } |
113 | 113 | |
114 | 114 | #[derive(Clone, Serialize, Deserialize)] |
115 | pub struct RepositoryInfoRequest { | |
116 | pub info: RepositoryView, | |
117 | } | |
115 | pub struct RepositoryInfoRequest; |
src/connection.rs
@@ -191,7 +191,8 @@ pub async fn connection_worker( | ||
191 | 191 | .unwrap(); |
192 | 192 | } |
193 | 193 | RepositoryRequest::IssuesCount(_) => { |
194 | let response: IssuesCountResponse = IssuesCountResponse { count: 727420 }; | |
194 | let response: IssuesCountResponse = | |
195 | IssuesCountResponse { count: 727420 }; | |
195 | 196 | |
196 | 197 | socket |
197 | 198 | .send(Message::Binary( |
src/lib.rs
@@ -0,0 +1,8 @@ | ||
1 | pub mod command; | |
2 | pub mod connection; | |
3 | pub mod handshake; | |
4 | pub mod listener; | |
5 | pub mod model; | |
6 | ||
7 | #[macro_use] | |
8 | extern crate tracing; |
src/main.rs
@@ -1,6 +1,7 @@ | ||
1 | 1 | use std::{error::Error, net::SocketAddr, sync::Arc}; |
2 | 2 | |
3 | 3 | use connection::{connection_worker, Connections, RawConnection, UnestablishedConnection}; |
4 | use giterated_daemon::{connection, listener}; | |
4 | 5 | use listener::Listeners; |
5 | 6 | use tokio::{ |
6 | 7 | io::{AsyncRead, AsyncWrite}, |
@@ -9,12 +10,6 @@ use tokio::{ | ||
9 | 10 | }; |
10 | 11 | use tokio_tungstenite::{accept_async, WebSocketStream}; |
11 | 12 | |
12 | pub mod command; | |
13 | pub mod connection; | |
14 | pub mod handshake; | |
15 | pub mod listener; | |
16 | pub mod model; | |
17 | ||
18 | 13 | #[macro_use] |
19 | 14 | extern crate tracing; |
20 | 15 |