Skip to content
This repository has been archived by the owner on Apr 18, 2024. It is now read-only.

Commit

Permalink
add sentinel cid logging
Browse files Browse the repository at this point in the history
  • Loading branch information
AmeanAsad committed Jul 5, 2023
1 parent 4296810 commit 44d5802
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pool.go
Original file line number Diff line number Diff line change
Expand Up @@ -242,11 +242,12 @@ func (p *pool) refreshPool() {
func (p *pool) fetchSentinelCid(node string) error {
sc, err := p.th.GetSentinelCid(node)
if err != nil {
goLogger.Warnw("failed to fetch sentinel cid ", "err", err)
goLogger.Warnw("failed to find sentinel cid ", "err", err)
return err
}
trialTimeout, cancel := context.WithTimeout(context.Background(), 30*time.Second)
reqUrl := fmt.Sprintf(sentinelCidReqTemplate, sc)
goLogger.Debugw("Fetching Sentinel CID: ", sc, " from: ", node)
err = p.fetchResourceAndUpdate(trialTimeout, node, reqUrl, 0, p.mirrorValidator)
cancel()
return err
Expand Down

0 comments on commit 44d5802

Please sign in to comment.