mirror of
https://git.alemi.dev/fedicharter.git
synced 2024-11-23 00:44:48 +01:00
fix: thanks clippy
This commit is contained in:
parent
6b4318f1cf
commit
451b2c18ad
2 changed files with 2 additions and 2 deletions
|
@ -108,7 +108,7 @@ impl BubbleChart {
|
||||||
|
|
||||||
if let Some(Some(local_bubble)) = local_bubble {
|
if let Some(Some(local_bubble)) = local_bubble {
|
||||||
vertex.mass += 0.1 * local_bubble.len() as f32;
|
vertex.mass += 0.1 * local_bubble.len() as f32;
|
||||||
vertex.value += 1 * local_bubble.len();
|
vertex.value += local_bubble.len();
|
||||||
for instance in local_bubble {
|
for instance in local_bubble {
|
||||||
if let Some(other_domain) = instance.as_str() {
|
if let Some(other_domain) = instance.as_str() {
|
||||||
if let Ok(mut other_vertex) = self.get_vertex(other_domain).await {
|
if let Ok(mut other_vertex) = self.get_vertex(other_domain).await {
|
||||||
|
|
|
@ -34,7 +34,7 @@ async fn route_crawl_domain(
|
||||||
tracing::info!("starting new crawl from {}", params.domain);
|
tracing::info!("starting new crawl from {}", params.domain);
|
||||||
let mut chart = BubbleChart::new(db.clone());
|
let mut chart = BubbleChart::new(db.clone());
|
||||||
match chart.chart_local_bubble(¶ms.domain).await {
|
match chart.chart_local_bubble(¶ms.domain).await {
|
||||||
Ok(()) => Json((chart.vertices.values().into_iter().cloned().collect(), chart.arcs)),
|
Ok(()) => Json((chart.vertices.values().cloned().collect(), chart.arcs)),
|
||||||
Err(e) => {
|
Err(e) => {
|
||||||
tracing::error!("could not chart requested domain: {}", e);
|
tracing::error!("could not chart requested domain: {}", e);
|
||||||
Json((Vec::new(), Vec::new()))
|
Json((Vec::new(), Vec::new()))
|
||||||
|
|
Loading…
Reference in a new issue