Skip to content

Commit

Permalink
Merge pull request #13 from noah-blockchain/fix/bugs
Browse files Browse the repository at this point in the history
fix unusable log in balance service
  • Loading branch information
PillarDevelopment committed Apr 21, 2020
2 parents 9806ca7 + 2f8c96e commit 6462505
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 7 deletions.
2 changes: 0 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@ require (
github.com/golang/protobuf v1.3.2
github.com/google/uuid v1.1.1
github.com/jinzhu/inflection v1.0.0 // indirect
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
github.com/modern-go/reflect2 v1.0.1 // indirect
github.com/nats-io/nats-server/v2 v2.1.2 // indirect
github.com/nats-io/nats-streaming-server v0.16.2 // indirect
github.com/nats-io/stan.go v0.5.2
Expand Down
5 changes: 0 additions & 5 deletions internal/balance/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -117,11 +117,6 @@ func (s *Service) UpdateBalancesWorker(jobs <-chan AddressesBalancesContainer) {
func (s *Service) HandleBalanceResponse(response *responses.BalancesResponse) ([]*models.Balance, error) {
var balances []*models.Balance

if len(response.Result) == 0 {
s.logger.Warn("No data in response")
return nil, nil
}

for _, item := range response.Result {
addressId, err := s.addressRepository.FindId(helpers.RemovePrefixFromAddress(item.Address))
if err != nil {
Expand Down

0 comments on commit 6462505

Please sign in to comment.