Skip to content

Commit 82a84dc

Browse files
committed
Move to goroutine for faster startup time
1 parent 0ca776a commit 82a84dc

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

ethereal/gui.go

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -143,10 +143,12 @@ func (gui *Gui) showWallet(context *qml.Context) (*qml.Window, error) {
143143

144144
win := gui.createWindow(component)
145145

146-
gui.setInitialBlockChain()
147-
gui.loadAddressBook()
148-
gui.readPreviousTransactions()
149-
gui.setPeerInfo()
146+
go func() {
147+
gui.setInitialBlockChain()
148+
gui.loadAddressBook()
149+
gui.readPreviousTransactions()
150+
gui.setPeerInfo()
151+
}()
150152

151153
go gui.update()
152154

0 commit comments

Comments
 (0)