mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2024-12-22 11:41:19 +00:00
node: prefer nil slices over zero-length slices (#19083)
This commit is contained in:
parent
3930f3795b
commit
7b3e3d549e
@ -466,7 +466,7 @@ func makeAccountManager(conf *Config) (*accounts.Manager, string, error) {
|
|||||||
return nil, "", err
|
return nil, "", err
|
||||||
}
|
}
|
||||||
// Assemble the account manager and supported backends
|
// Assemble the account manager and supported backends
|
||||||
backends := []accounts.Backend{}
|
var backends []accounts.Backend
|
||||||
if len(conf.ExternalSigner) > 0 {
|
if len(conf.ExternalSigner) > 0 {
|
||||||
log.Info("Using external signer", "url", conf.ExternalSigner)
|
log.Info("Using external signer", "url", conf.ExternalSigner)
|
||||||
if extapi, err := external.NewExternalBackend(conf.ExternalSigner); err == nil {
|
if extapi, err := external.NewExternalBackend(conf.ExternalSigner); err == nil {
|
||||||
|
@ -220,7 +220,7 @@ func (n *Node) Start() error {
|
|||||||
return convertFileLockError(err)
|
return convertFileLockError(err)
|
||||||
}
|
}
|
||||||
// Start each of the services
|
// Start each of the services
|
||||||
started := []reflect.Type{}
|
var started []reflect.Type
|
||||||
for kind, service := range services {
|
for kind, service := range services {
|
||||||
// Start the next service, stopping all previous upon failure
|
// Start the next service, stopping all previous upon failure
|
||||||
if err := service.Start(running); err != nil {
|
if err := service.Start(running); err != nil {
|
||||||
|
Loading…
Reference in New Issue
Block a user