Skip to content

Commit

Permalink
fix: do not exit when node start fails (#47)
Browse files Browse the repository at this point in the history
  • Loading branch information
MattKetmo authored Dec 6, 2023
1 parent 979ecbb commit 00a189f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/rpc/pool.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import (
"fmt"
"sync"

"github.com/rs/zerolog/log"
"golang.org/x/sync/errgroup"
)

Expand Down Expand Up @@ -32,7 +33,7 @@ func (p *Pool) Start(ctx context.Context) error {
// Start node
errg.Go(func() error {
if err := node.Start(ctx); err != nil {
return fmt.Errorf("failed to start node %s: %w", node.Client.Remote(), err)
log.Error().Err(err).Msg("node error")
}
return nil
})
Expand Down

0 comments on commit 00a189f

Please sign in to comment.