aboutsummaryrefslogtreecommitdiffstats
path: root/ethereal/ext_app.go
diff options
context:
space:
mode:
authorzelig <viktor.tron@gmail.com>2014-07-05 02:48:37 +0800
committerzelig <viktor.tron@gmail.com>2014-07-05 02:48:37 +0800
commit1e4ae24126d21305c8fcbebd057ce4ec28ddd242 (patch)
treeae8b9032f4035315e590bddc406c53db1cfe96ad /ethereal/ext_app.go
parent9754c01f561d2a9885e6fe06fe5ee459daff68e4 (diff)
downloaddexon-1e4ae24126d21305c8fcbebd057ce4ec28ddd242.tar.gz
dexon-1e4ae24126d21305c8fcbebd057ce4ec28ddd242.tar.zst
dexon-1e4ae24126d21305c8fcbebd057ce4ec28ddd242.zip
use ethreact.Event, unbuffered event channels, subscribe after loop reading from channel starts
Diffstat (limited to 'ethereal/ext_app.go')
-rw-r--r--ethereal/ext_app.go9
1 files changed, 5 insertions, 4 deletions
diff --git a/ethereal/ext_app.go b/ethereal/ext_app.go
index 17c342a1b..c02f5ccb3 100644
--- a/ethereal/ext_app.go
+++ b/ethereal/ext_app.go
@@ -4,6 +4,7 @@ import (
"fmt"
"github.com/ethereum/eth-go/ethchain"
"github.com/ethereum/eth-go/ethpub"
+ "github.com/ethereum/eth-go/ethreact"
"github.com/ethereum/eth-go/ethutil"
"github.com/go-qml/qml"
)
@@ -24,8 +25,8 @@ type AppContainer interface {
type ExtApplication struct {
*ethpub.PEthereum
- blockChan chan ethutil.React
- changeChan chan ethutil.React
+ blockChan chan ethreact.Event
+ changeChan chan ethreact.Event
quitChan chan bool
watcherQuitChan chan bool
@@ -37,8 +38,8 @@ type ExtApplication struct {
func NewExtApplication(container AppContainer, lib *UiLib) *ExtApplication {
app := &ExtApplication{
ethpub.NewPEthereum(lib.eth),
- make(chan ethutil.React, 1),
- make(chan ethutil.React, 1),
+ make(chan ethreact.Event),
+ make(chan ethreact.Event),
make(chan bool),
make(chan bool),
container,