Skip to content

Commit

Permalink
feat: thank sponsors
Browse files Browse the repository at this point in the history
  • Loading branch information
kamadorueda committed Aug 12, 2022
1 parent 1c3fdf5 commit d37a0cd
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/alejandra_cli/src/ads/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ use rand::rngs::OsRng;
pub(crate) fn random_ad() -> String {
let ads = [
// 90% distributed proportional to total past and present contributions
// (0.9001, sponsor_benefits as fn() -> String),
(0.9001, sponsor_benefits as fn() -> String),
// 10% is reserved for everything else
(0.0333, contributor_thanks as fn() -> String),
(0.0333, please_sponsor as fn() -> String),
Expand All @@ -22,7 +22,13 @@ fn sponsor_benefits() -> String {
Company { ad: &'a str },
}

let sponsors = [];
let sponsors = [
// Proportional to total past and present contributions
(0.1247, Sponsor::Individual { name: "Guangtao Zhang" }),
(0.1468, Sponsor::Individual { name: "Fabio Leimgruber" }),
(0.2495, Sponsor::Individual { name: "Raphael Megzari" }),
(0.4790, Sponsor::Individual { name: "Daniel Salazar" }),
];

match random_weighted_choice(&sponsors[..]) {
Sponsor::Company { ad } => {
Expand Down

0 comments on commit d37a0cd

Please sign in to comment.