Skip to content
This repository has been archived by the owner on Sep 8, 2022. It is now read-only.

Commit

Permalink
statistic: fix error handling of TokenMetric
Browse files Browse the repository at this point in the history
  • Loading branch information
hexoul committed Dec 17, 2018
1 parent 2e7d153 commit 51b0339
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# go-coinmarketcap

[![License](http://img.shields.io/badge/license-MIT-blue.svg)](https://raw.githubusercontent.com/hexoul/go-coinmarketcap/master/LICENSE)
[![Go Report Card](https://goreportcard.com/badge/github.com/hexoul/go-coinmarketcap)](https://goreportcard.com/report/github.com/hexoul/go-coinmarketcap)
[![GoDoc](https://godoc.org/github.com/hexoul/go-coinmarketcap?status.svg)](https://godoc.org/github.com/hexoul/go-coinmarketcap)
Expand Down
4 changes: 4 additions & 0 deletions statistics/statistics.go
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,10 @@ func TaskGatherTokenMetric(symbol, addr string) {
c1.Visit(url1)
c2.Visit(url2)

if holders == "" && transfers == "" && txns == "" {
return
}

logger.WithFields(log.Fields{
"symbol": symbol,
"holders": holders,
Expand Down

0 comments on commit 51b0339

Please sign in to comment.