Added drawing squares

This commit is contained in:
Benjamin Sherriff
2023-10-30 10:45:53 -04:00
parent f972a77909
commit c5a6b762f0
4 changed files with 93 additions and 38 deletions

View File

@@ -4,7 +4,7 @@ use s3::{Region, creds::Credentials, Bucket, BucketConfiguration, request::Respo
use siren::ServiceError;
use crate::diesel_migrations::MigrationHarness;
use lazy_static::lazy_static;
use log::{error, info, warn};
use log::{error, info};
use r2d2;
use std::env;
@@ -35,7 +35,7 @@ lazy_static! {
RedisClient::open(url).expect("Failed to create redis client")
};
static ref BUCKET: Bucket = {
let url = env::var("MINIO_URL").unwrap_or("localhost".to_string());
let url = env::var("MINIO_HOST").unwrap_or("localhost".to_string());
let port = env::var("MINIO_PORT").unwrap_or("9000".to_string());
let user = env::var("MINIO_ROOT_USER").expect("MINIO_ROOT_USER is not set");
let password = env::var("MINIO_ROOT_PASSWORD").expect("MINIO_ROOT_PASSWORD is not set");