Skip to content

Commit

Permalink
vicky: rust fmt and optimize imports
Browse files Browse the repository at this point in the history
  • Loading branch information
Kek5chen committed Apr 23, 2024
1 parent 6b024f5 commit 20df2e3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 14 deletions.
7 changes: 3 additions & 4 deletions vicky/src/bin/vicky/events.rs
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
use rocket::{get, State};
use rocket::response::stream::{Event, EventStream};
use rocket::{get, post, serde::json::Json, State};
use serde::{Deserialize, Serialize};
use rocket::response::stream::{EventStream, Event};
use std::time;
use tokio::sync::broadcast::{error::{TryRecvError}, self};

use tokio::sync::broadcast::{self, error::TryRecvError};

#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
#[serde(tag = "type")]
Expand Down
13 changes: 3 additions & 10 deletions vicky/src/lib/logs/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,9 @@ use std::collections::{HashMap, VecDeque};
use std::time;

use rocket::futures::lock::Mutex;
use tokio::sync::broadcast::{
self,
error::TryRecvError,
Sender,
};

use crate::{
errors::VickyError,
s3::client::S3Client,
};
use tokio::sync::broadcast::{self, error::TryRecvError, Sender};

use crate::{errors::VickyError, s3::client::S3Client};

const LOG_BUFFER: usize = 10000;

Expand Down

0 comments on commit 20df2e3

Please sign in to comment.