Skip to content

Accept multiple channels for some API#1440

Merged
t-bast merged 3 commits intomasterfrom
api-batch-channel
Jun 3, 2020
Merged

Accept multiple channels for some API#1440
t-bast merged 3 commits intomasterfrom
api-batch-channel

Conversation

@t-bast
Copy link
Member

@t-bast t-bast commented May 28, 2020

It's handy to update relay fees for multiple channels at once.
Closing and force-closing channels may also make sense to do in batch.

I've made a note to update the API documentation when we release these changes.

Closes #1432

It's handy to update relay fees for multiple channels at once.
Closing and force-closing channels may also make sense to do in batch.

Closes #1432
@t-bast t-bast requested a review from araspitzu May 28, 2020 12:11
Copy link
Contributor

@araspitzu araspitzu left a comment

Choose a reason for hiding this comment

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

Left some minor nits but changes ACK 👍

@araspitzu araspitzu self-requested a review May 28, 2020 15:42
araspitzu
araspitzu previously approved these changes May 28, 2020
@t-bast
Copy link
Member Author

t-bast commented May 28, 2020

Actually I didn't test the failing cases thoroughly enough, in case of failures we don't return a map that allows tracking which channel command succeeded and which failed, we only return the failure.

I should handle that more cleanly.

We map all failures to a successful future that contains a Left(throwable).
It ensures that we see a response for each requested channels,
allowing the application to deal with failures individually.
@t-bast t-bast merged commit c04a4ce into master Jun 3, 2020
@t-bast t-bast deleted the api-batch-channel branch June 3, 2020 09:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Feature request: API call to update relay fees for bulk or all channels

2 participants