Skip to content

Improve payjoin-cli ergonomics - #275

Merged
DanGould merged 2 commits into
payjoin:masterfrom
DanGould:cli-ergo
Jun 4, 2024
Merged

Improve payjoin-cli ergonomics#275
DanGould merged 2 commits into
payjoin:masterfrom
DanGould:cli-ergo

Conversation

@DanGould

@DanGould DanGould commented Jun 1, 2024

Copy link
Copy Markdown
Member
  • Don't keep polling if the server returns an unrecoverable error
  • Print information to keep track of progress

This doesn't reckon with async --retry flows yet but sets the groundwork to do that properly, too.

@DanGould
DanGould requested a review from thebrandonlucas June 1, 2024 21:06
@DanGould DanGould added enhancement New feature or request payjoin-cli labels Jun 3, 2024
Comment thread payjoin-cli/src/app/v2.rs
.await
.map_err(map_reqwest_err)?;
let res = payjoin_proposal
let _res = payjoin_proposal

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this rename just to indicate that the parsed result isn't used? Just trying to learn idiomatic Rust

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes

@thebrandonlucas thebrandonlucas left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested and works. These logs are much more informative

@DanGould
DanGould merged commit 64008e6 into payjoin:master Jun 4, 2024
@DanGould
DanGould deleted the cli-ergo branch June 4, 2024 16:58
DanGould added a commit that referenced this pull request Jun 4, 2024
#275 accidentally referenced an old config and failed CI. This fixes
that
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request payjoin-cli

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants