Skip to content

Commit

Permalink
adjust bitmart scraper for watchdog restart.
Browse files Browse the repository at this point in the history
  • Loading branch information
jppade committed Aug 15, 2024
1 parent d7efa31 commit fa7df4e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion cmd/exchange-scrapers/collector/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ module github.com/diadata-org/diadata/exchange-scrapers/collector
go 1.19

require (
github.com/diadata-org/diadata v1.4.518
github.com/diadata-org/diadata v1.4.519
github.com/segmentio/kafka-go v0.4.35
github.com/sirupsen/logrus v1.9.3
)
Expand Down
6 changes: 3 additions & 3 deletions pkg/dia/scraper/exchange-scrapers/BitMartScraper.go
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,7 @@ func (s *BitMartScraper) mainLoop() {
return
}
if err := s.retryConnection(idx); err != nil || ws.IsCloseError(err, ws.CloseAbnormalClosure) {
continue
return
}
}

Expand All @@ -330,7 +330,7 @@ func (s *BitMartScraper) mainLoop() {
case ws.TextMessage:
if string(msg) == bitMartPongMessage {
s.errCount[idx] = 0
continue
return
}
output = msg
}
Expand All @@ -342,7 +342,7 @@ func (s *BitMartScraper) mainLoop() {
s.setError(err)
s.errCount[idx]++
if err := s.retryConnection(idx); err != nil {
continue
return
}
}
if subResults.ErrorCode != "" {
Expand Down

0 comments on commit fa7df4e

Please sign in to comment.