diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b8d12a9..68ae8a1 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -86,32 +86,3 @@ jobs: with: command: clippy args: --all-features -- -D warnings - - coverage: - name: Code coverage - runs-on: ubuntu-latest - steps: - - name: Checkout repository - uses: actions/checkout@v2 - - name: Install stable toolchain - uses: actions-rs/toolchain@v1 - with: - toolchain: stable - override: true - - name: Run cargo-tarpaulin - uses: actions-rs/tarpaulin@v0.1 - with: - args: '--all-features --ignore-tests --out Lcov' - env: - AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} - AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} - AWS_REGION: ${{ secrets.AWS_REGION }} - S3_BUCKET: ${{ secrets.S3_BUCKET }} - S3_KEY_PREFIX: ${{ secrets.S3_KEY_PREFIX }} - - name: Upload to Coveralls - # upload only if push - if: ${{ github.event_name == 'push' }} - uses: coverallsapp/github-action@master - with: - github-token: ${{ secrets.GITHUB_TOKEN }} - path-to-lcov: './lcov.info' diff --git a/feattle/examples/full.rs b/feattle/examples/full.rs index 320689d..468aa13 100644 --- a/feattle/examples/full.rs +++ b/feattle/examples/full.rs @@ -1,7 +1,5 @@ use axum::Server; use feattle::*; -use rusoto_core::Region; -use rusoto_s3::S3Client; use std::collections::BTreeMap; use std::env; use std::error::Error; @@ -77,9 +75,8 @@ async fn main() -> Result<(), Box> { env_logger::init(); // Create the S3 persistence - let client = S3Client::new(Region::default()); - let timeout = Duration::from_secs(10); - let s3_storage = Arc::new(S3::new(client, s3_bucket, s3_key_prefix, timeout)); + let config = aws_config::load_from_env().await; + let s3_storage = Arc::new(S3::new(&config, s3_bucket, s3_key_prefix)); // Create the instance let features = Arc::new(SimulationToggles::new(s3_storage));