Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

Commit

Permalink
fix(grpc): remove redundant openChannel.data and closeChannel.data subs
Browse files Browse the repository at this point in the history
fix #2920
  • Loading branch information
korhaliv committed Oct 7, 2019
1 parent 56fcafe commit 48b71b0
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions renderer/reducers/channels.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { createSelector } from 'reselect'
import { proxyValue } from 'comlinkjs'
import orderBy from 'lodash/orderBy'
import throttle from 'lodash/throttle'
import config from 'config'
Expand Down Expand Up @@ -546,10 +545,6 @@ export const openChannel = data => async (dispatch, getState) => {
spendUnconfirmed,
})
dispatch(pushchannelupdated(data))
grpc.services.Lightning.once(
'openChannel.data',
proxyValue(data => dispatch(pushchannelupdated(data)))
)
} catch (e) {
dispatch(
pushchannelerror({
Expand Down Expand Up @@ -647,10 +642,6 @@ export const closeChannel = () => async (dispatch, getState) => {
force: !active,
})
dispatch(pushclosechannelupdated(data))
grpc.services.Lightning.once(
'closeChannel.data',
proxyValue(data => dispatch(pushclosechannelupdated(data)))
)
} catch (e) {
dispatch(
pushchannelerror({
Expand Down

0 comments on commit 48b71b0

Please # to comment.