forked from cerc-io/plugeth
reactor event channels have large buffer to allow more tolerance
This commit is contained in:
parent
9f7d8ff302
commit
74abc457ad
@ -38,8 +38,8 @@ type ExtApplication struct {
|
|||||||
func NewExtApplication(container AppContainer, lib *UiLib) *ExtApplication {
|
func NewExtApplication(container AppContainer, lib *UiLib) *ExtApplication {
|
||||||
app := &ExtApplication{
|
app := &ExtApplication{
|
||||||
ethpub.NewPEthereum(lib.eth),
|
ethpub.NewPEthereum(lib.eth),
|
||||||
make(chan ethreact.Event, 10),
|
make(chan ethreact.Event, 100),
|
||||||
make(chan ethreact.Event, 10),
|
make(chan ethreact.Event, 100),
|
||||||
make(chan bool),
|
make(chan bool),
|
||||||
make(chan bool),
|
make(chan bool),
|
||||||
container,
|
container,
|
||||||
|
@ -281,12 +281,12 @@ func (self *Gui) getObjectByName(objectName string) qml.Object {
|
|||||||
func (gui *Gui) update() {
|
func (gui *Gui) update() {
|
||||||
|
|
||||||
var (
|
var (
|
||||||
blockChan = make(chan ethreact.Event, 1)
|
blockChan = make(chan ethreact.Event, 100)
|
||||||
txChan = make(chan ethreact.Event, 1)
|
txChan = make(chan ethreact.Event, 100)
|
||||||
objectChan = make(chan ethreact.Event, 1)
|
objectChan = make(chan ethreact.Event, 100)
|
||||||
peerChan = make(chan ethreact.Event, 1)
|
peerChan = make(chan ethreact.Event, 100)
|
||||||
chainSyncChan = make(chan ethreact.Event, 1)
|
chainSyncChan = make(chan ethreact.Event, 100)
|
||||||
miningChan = make(chan ethreact.Event, 1)
|
miningChan = make(chan ethreact.Event, 100)
|
||||||
)
|
)
|
||||||
|
|
||||||
peerUpdateTicker := time.NewTicker(5 * time.Second)
|
peerUpdateTicker := time.NewTicker(5 * time.Second)
|
||||||
|
Loading…
Reference in New Issue
Block a user