Skip to content

Commit

Permalink
Fixed newReaderNodeBootstrapper to return nil bootstrapper if boo…
Browse files Browse the repository at this point in the history
…tstrap URL is ""
  • Loading branch information
maoueh committed Oct 31, 2023
1 parent aa50b5c commit fdd7772
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions cmd/fireeth/reader_node_bootstraper.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,13 @@ import (
"go.uber.org/zap"
)

func newReaderNodeBootstrapper(ctx context.Context, logger *zap.Logger, cmd *cobra.Command, resolvedNodeArguments []string, resolver firecore.ReaderNodeArgumentResolver) (operator.Bootstrapper, error) {
nodePath := sflags.MustGetString(cmd, "reader-node-path")
func newReaderNodeBootstrapper(_ context.Context, logger *zap.Logger, cmd *cobra.Command, resolvedNodeArguments []string, resolver firecore.ReaderNodeArgumentResolver) (operator.Bootstrapper, error) {
bootstrapDataURL := sflags.MustGetString(cmd, "reader-node-bootstrap-data-url")
if bootstrapDataURL == "" {
return nil, nil
}

nodePath := sflags.MustGetString(cmd, "reader-node-path")
nodeDataDir := resolver("{node-data-dir}")

switch {
Expand Down

0 comments on commit fdd7772

Please sign in to comment.