Radish alpha
h
Radicle Heartwood Protocol & Stack
Radicle
Git (anonymous pull)
Log in to clone via SSH
httpd: Use `HashSet` instead of `BTreeSet`
xphoniex committed 3 years ago
commit 46951b1b42b4550d0cd9f82e6f7138627bc55266
parent d4d40b14922d93067012110d8d42357462bbb129
1 file changed +2 -2
modified radicle-httpd/src/api/v1/projects.rs
@@ -1,4 +1,4 @@
-
use std::collections::BTreeSet;
+
use std::collections::HashSet;

use axum::handler::Handler;
use axum::http::{header, HeaderValue};
@@ -426,7 +426,7 @@ fn stats<R: WriteRepository>(repo: &R) -> Result<Stats, Error> {
                None
            }
        })
-
        .collect::<BTreeSet<_>>();
+
        .collect::<HashSet<_>>();

    Ok(Stats {
        branches,