Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Increase channel view performance when loading (#246)
* refactor(NodeChannelSubscribeJob.cs): remove check for empty close address to allow for channels without a close address style(Channels.razor): add space after typecast for consistency and readability refactor(Channels.razor): simplify balance calculation logic by removing unnecessary null check and conversion feat(Channels.razor): add _channelsBalance dictionary to store channel balances for efficiency feat(Channels.razor): add balance update every 60 seconds to keep channel balances up-to-date fix(Channels.razor): change return type of GetPercentageBalance to int and handle exceptions more gracefully style(Channels.razor): adjust indentation for better code readability style(Channels.razor): add space after typecast for consistency and readability style(Channels.razor): adjust line breaks for better code readability refactor(LightningService.cs): improve code readability by breaking down long lines of code feat(LightningService.cs): modify GetChannelBalance method to return a dictionary of balances for all channels fix(LightningService.cs): improve error handling and logging for better debugging and error tracking style(LightningService.cs): improve code readability by breaking long lines into multiple lines This commit breaks down long lines of code into multiple lines to improve readability and maintainability. This includes error messages, function calls, and conditional statements. No functional changes were made. style(LightningService.cs): improve code readability by breaking long lines into multiple lines This commit breaks down long lines of code into multiple lines to improve readability and maintainability. This is particularly useful for developers who use tools or editors with limited horizontal space. It also makes it easier to understand the structure and flow of the code at a glance. refactor(LightningService.cs): change GetChannelBalance method to GetChannelsBalance to fetch balances for all channels feat(LightningService.cs): add logic to calculate local and remote balances for each channel in GetChannelsBalance method to provide more detailed balance information * Update src/Pages/Channels.razor Co-authored-by: Marcos <[email protected]> --------- Co-authored-by: Marcos <[email protected]>
- Loading branch information