diff options
author | zelig <viktor.tron@gmail.com> | 2014-07-15 08:13:39 +0800 |
---|---|---|
committer | zelig <viktor.tron@gmail.com> | 2014-07-15 08:13:39 +0800 |
commit | 75a7a4c97c350e911f4d721e940a59c0740ae967 (patch) | |
tree | f58ff56c3682da4e8548ff9f331c9ac351a94bf4 /ethereal/ext_app.go | |
parent | 94b12f7804bfb32763c9bbbce323af5d84c74910 (diff) | |
download | go-tangerine-75a7a4c97c350e911f4d721e940a59c0740ae967.tar go-tangerine-75a7a4c97c350e911f4d721e940a59c0740ae967.tar.gz go-tangerine-75a7a4c97c350e911f4d721e940a59c0740ae967.tar.bz2 go-tangerine-75a7a4c97c350e911f4d721e940a59c0740ae967.tar.lz go-tangerine-75a7a4c97c350e911f4d721e940a59c0740ae967.tar.xz go-tangerine-75a7a4c97c350e911f4d721e940a59c0740ae967.tar.zst go-tangerine-75a7a4c97c350e911f4d721e940a59c0740ae967.zip |
ethreact
- use ethreact.Event,
- increased buffered event channels,
- subscribe after loop reading from channel starts
Diffstat (limited to 'ethereal/ext_app.go')
-rw-r--r-- | ethereal/ext_app.go | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/ethereal/ext_app.go b/ethereal/ext_app.go index 17c342a1b..736b059e5 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, 10), + make(chan ethreact.Event, 10), make(chan bool), make(chan bool), container, |