Skip to content

Commit

Permalink
log fixed, comments removed
Browse files Browse the repository at this point in the history
  • Loading branch information
GrePod committed Dec 17, 2024
1 parent 2c7bef7 commit 8a2ba2f
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 7 deletions.
1 change: 0 additions & 1 deletion client/epoch/rewards_utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,6 @@ func fetchRewardData(epochId *big.Int, config *config.RewardsConfig) (*rewardDis
}

rewardsUrl, err := url.JoinPath(config.UrlPrefix, epochId.Text(10), "reward-distribution-data.json")

if err != nil {
return nil, errors.Errorf("cannot join url: %s", err)
}
Expand Down
5 changes: 0 additions & 5 deletions client/protocol/protocol_utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,11 +75,6 @@ func (sp *SubProtocol) fetchData(url *url.URL, timeout time.Duration) (*SubProto

respLimited := &io.LimitedReader{R: resp.Body, N: maxRespSize}

// body, err := io.ReadAll(resp.Body)
// if err != nil {
// return nil, errors.Wrap(err, "error reading protocol client response")
// }

decoder := json.NewDecoder(respLimited)
decoder.DisallowUnknownFields()

Expand Down
2 changes: 1 addition & 1 deletion client/protocol/submitter.go
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ func (s *Submitter) GetPayload(currentEpoch int64) []byte {
}

func (s *Submitter) RunEpoch(currentEpoch int64) {
logger.Debugf("Submitter %s running for epoch %d")
logger.Debugf("Submitter %s running for epoch %d", s.name, currentEpoch)

payload := s.GetPayload(currentEpoch)

Expand Down

0 comments on commit 8a2ba2f

Please sign in to comment.