Remove a unused channel from chain.NewClient

This commit is contained in:
Guilherme Salgado 2014-07-31 15:55:11 -03:00 committed by Josh Rickmar
parent 5e18693d2a
commit 868625d8c3

View file

@ -60,7 +60,6 @@ func NewClient(net *btcnet.Params, connect, user, pass string, certs []byte) (*C
notificationLock: new(sync.Mutex),
quit: make(chan struct{}),
}
initializedClient := make(chan struct{})
ntfnCallbacks := btcrpcclient.NotificationHandlers{
OnClientConnected: client.onClientConnect,
OnBlockConnected: client.onBlockConnected,
@ -83,7 +82,6 @@ func NewClient(net *btcnet.Params, connect, user, pass string, certs []byte) (*C
return nil, err
}
client.Client = c
close(initializedClient)
return &client, nil
}