Radish alpha
h
rad:z3gqcJUoA1n9HaHKufZs5FCSGazv5
Radicle Heartwood Protocol & Stack
Radicle
Git
radicle: Keep pinned repos ordered in config
Archived did:key:z6MkwfcG...bzQA opened 10 months ago

A trivial patch suggested by @Johannes in zulip:

Do not return them in a random order in radicle-httpd, so that we can have them in a defined order in radicle-explorer.

1 file changed +1 -1 78ba263d ef1c6588
modified crates/radicle/src/web.rs
@@ -34,5 +34,5 @@ pub struct Config {
#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))]
pub struct Pinned {
    /// Pinned repositories.
-
    pub repositories: HashSet<RepoId>,
+
    pub repositories: Vec<RepoId>,
}