Skip to content

Commit

Permalink
try fix multiple output
Browse files Browse the repository at this point in the history
  • Loading branch information
Mon-ius committed Sep 6, 2023
1 parent 0049542 commit ced8681
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/auto-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,9 @@ jobs:
tmux new-session -d -s chromedriver
tmux send-keys -t chromedriver 'chromedriver --port=9515' Enter
cargo build --release
./target/release/cli post ${{ inputs.addr }} ${{ inputs.core }}
./target/release/cli post ${{ inputs.addr }} ${{ inputs.core }} >> $GITHUB_OUTPUT
{
./target/release/cli post ${{ inputs.addr }} ${{ inputs.core }}
} >> $GITHUB_OUTPUT
shell: bash
name: Build and Run cli

Expand Down
2 changes: 0 additions & 2 deletions core/src/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,11 @@ async fn main() {
let cli = Cli::parse();
let now = Instant::now();

println!("{{");
let key = env::var("CHACHA_KEY").unwrap();
let _ = match cli.args {
// Kings::Post { addr, key, value } => core::run(addr, key, value).await,
Kings::Post { addr, value } => core::run(addr, key, value).await,
};

println!("runtime={:.2}_secs", now.elapsed().as_secs_f64());
println!("}}");
}

0 comments on commit ced8681

Please sign in to comment.