chore: clippy
Some checks failed
Lint / fmt (push) Has been cancelled
Lint / clippy (push) Has been cancelled
Coverage / stable - x86_64-unknown-linux-gnu (push) Has been cancelled
Build / stable - x86_64-unknown-linux-gnu (push) Has been cancelled

This commit is contained in:
Aravinth Manivannan 2023-03-26 11:43:21 +05:30
parent f622f47550
commit 64daf6eb2f
Signed by: realaravinth
GPG key ID: AD9F0F08E855ED88
4 changed files with 7 additions and 7 deletions

View file

@ -91,9 +91,9 @@ async fn main() {
let (kill_introducer, introducer_fut) =
Ctx::spawn_bootstrap(c, d.as_ref().clone()).await.unwrap();
let c = ctx.clone();
let d = db.clone();
let f = federate.clone();
let _c = ctx.clone();
let _d = db.clone();
let _f = federate.clone();
let socket_addr = settings.server.get_ip();
HttpServer::new(move || {

View file

@ -122,7 +122,7 @@ impl Handler<AddSearchMaster> for Master {
type Result = MessageResult<AddSearchMaster>;
fn handle(&mut self, m: AddSearchMaster, ctx: &mut Self::Context) -> Self::Result {
let (tx, rx) = channel();
let (tx, _rx) = channel();
match self.get_site(&m.0) {
None => {
let _ = tx.send(Ok(None));
@ -235,7 +235,7 @@ impl Handler<AddCounter> for Master {
fn handle(&mut self, m: AddCounter, _ctx: &mut Self::Context) -> Self::Result {
// let (tx, rx) = channel();
let counter: Counter = m.counter.into();
let counter: Counter = m.counter;
let addr = counter.start();
self.add_site(addr, m.id);
// tx.send(Ok(())).unwrap();

View file

@ -90,7 +90,7 @@ pub async fn search(
db: &BoxDB,
query: String,
) -> ServiceResult<Vec<db_core::Repository>> {
let responses = ctx.search_repository(&db, query).await?;
let responses = ctx.search_repository(db, query).await?;
Ok(responses)
}

View file

@ -65,7 +65,7 @@ impl Ctx {
let mut federated_resp = Vec::default();
for starchart in db.search_mini_index(&query).await?.iter() {
if db.is_starchart_imported(&Url::parse(&starchart)?).await? {
if db.is_starchart_imported(&Url::parse(starchart)?).await? {
log::debug!("{starchart} is imported");
continue;
}