Skip to content

Commit

Permalink
Merge pull request #2277 from CortexFoundation/dev
Browse files Browse the repository at this point in the history
report error from setupDiscovery at startup
  • Loading branch information
ucwong authored Feb 27, 2025
2 parents 7734b50 + 4569d30 commit c1ac732
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion ctxc/backend.go
Original file line number Diff line number Diff line change
Expand Up @@ -581,7 +581,9 @@ func (s *Cortex) Protocols() []p2p.Protocol {
// Cortex protocol implementation.
func (s *Cortex) Start(srvr *p2p.Server) error {
s.startCtxcEntryUpdate(srvr.LocalNode())
s.setupDiscovery()
if err := s.setupDiscovery(); err != nil {
return err
}
// Start the bloom bits servicing goroutines
s.startBloomHandlers(params.BloomBitsBlocks)

Expand Down
2 changes: 1 addition & 1 deletion p2p/dnsdisc/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ func (it *randomIterator) Next() bool {
func (it *randomIterator) addTree(url string) error {
le, err := parseLink(url)
if err != nil {
return fmt.Errorf("invalid enrtree URL: %v", err)
return fmt.Errorf("invalid DNS discovery URL %q: %v", url, err)
}
it.lc.addLink("", le.str)
return nil
Expand Down

0 comments on commit c1ac732

Please sign in to comment.