From 1e4ae24126d21305c8fcbebd057ce4ec28ddd242 Mon Sep 17 00:00:00 2001 From: zelig Date: Fri, 4 Jul 2014 19:48:37 +0100 Subject: use ethreact.Event, unbuffered event channels, subscribe after loop reading from channel starts --- ethereal/ext_app.go | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'ethereal/ext_app.go') 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, -- cgit