Skip to content

Commit

Permalink
feat: use neighborhoodsuggester only if nonce does not exist
Browse files Browse the repository at this point in the history
  • Loading branch information
nugaon committed Jun 6, 2024
1 parent 0e9e3dc commit 3851618
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/node/node.go
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ func NewBee(
}

targetNeighborhood := o.TargetNeighborhood
if targetNeighborhood == "" && o.NeighborhoodSuggester != "" {
if targetNeighborhood == "" && !nonceExists && o.NeighborhoodSuggester != "" {
logger.Info("fetching target neighborhood from suggester", "url", o.NeighborhoodSuggester)
targetNeighborhood, err = nbhdutil.FetchNeighborhood(&http.Client{}, o.NeighborhoodSuggester)
if err != nil {
Expand Down

0 comments on commit 3851618

Please sign in to comment.