Merge branch 'master' into dev

This commit is contained in:
Suiranoil
2023-04-20 02:15:07 +03:00
committed by GitHub
3 changed files with 3 additions and 3 deletions

View File

@@ -429,7 +429,7 @@ impl LobbyCommand {
// let msg = interaction.get_interaction_response(ctx).await.unwrap(); // let msg = interaction.get_interaction_response(ctx).await.unwrap();
let collector = msg let collector = msg
.await_component_interactions(ctx) .await_component_interactions(ctx)
.timeout(Duration::from_secs(2 * 60)) .timeout(Duration::from_secs(10 * 60))
.guild_id(interaction.guild_id.unwrap()) .guild_id(interaction.guild_id.unwrap())
.channel_id(interaction.channel_id) .channel_id(interaction.channel_id)
.author_id(interaction.user.id) .author_id(interaction.user.id)

View File

@@ -34,7 +34,7 @@ impl TypeMapKey for CreatorContainer {
#[shuttle_runtime::main] #[shuttle_runtime::main]
async fn serenity( async fn serenity(
#[shuttle_shared_db::Postgres( #[shuttle_shared_db::Postgres(
local_uri = "postgres://postgres:{secrets.PASSWORD}@localhost:5432/postgres" // local_uri = "postgres://postgres:{secrets.PASSWORD}@localhost:5432/postgres"
)] )]
pool: PgPool, pool: PgPool,
#[shuttle_secrets::Secrets] secret_store: SecretStore, #[shuttle_secrets::Secrets] secret_store: SecretStore,

View File

@@ -42,7 +42,7 @@ fn get_combinations(entries: &[PlayerRoleEntry], count: usize) -> Vec<Vec<&Playe
.sorted_by(|a, b| { .sorted_by(|a, b| {
let a = a.iter().map(|e| e.priority).sum::<f32>(); let a = a.iter().map(|e| e.priority).sum::<f32>();
let b = b.iter().map(|e| e.priority).sum::<f32>(); let b = b.iter().map(|e| e.priority).sum::<f32>();
a.partial_cmp(&b).unwrap_or(Ordering::Equal) b.partial_cmp(&a).unwrap_or(Ordering::Equal)
}) })
.collect_vec() .collect_vec()
} }