File size: 836 Bytes
a446897
 
 
 
 
8b6063a
3569cbd
2bb7b57
2382376
65f3e54
44e95cf
2382376
3569cbd
a446897
 
4840c8f
65f3e54
 
 
 
ee7230e
65f3e54
4840c8f
8b6063a
4840c8f
a446897
a1dd3ea
2382376
a1dd3ea
 
 
 
 
a446897
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
/*
 * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
 * SPDX-License-Identifier: Apache-2.0.
 */

use aws_config::BehaviorVersion;
use aws_sdk_transcribestreaming::meta::PKG_VERSION;
use tokio::select;
use tracing::{debug};
use tracing_subscriber::{fmt, prelude::*, EnvFilter};

use polyhedron::app;


#[tokio::main]
async fn main() -> Result<(), std::io::Error> {
    tracing_subscriber::registry()
        .with(fmt::layer())
        .with(EnvFilter::from_default_env())
        .init();

    debug!("Transcribe client version: {}", PKG_VERSION);

    let shared_config = aws_config::load_defaults(BehaviorVersion::latest()).await;


    select! {
        res = app(&shared_config) => res,
        _ = tokio::signal::ctrl_c() => {
            tracing::info!("Shutting down");
            Ok(())
        },
    }
}