Skip to content

Commit

Permalink
set crawlRequest http client timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
brianolson committed Nov 20, 2024
1 parent 7cf0290 commit e1f818e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions bgs/bgs.go
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,8 @@ func NewBGS(db *gorm.DB, ix *indexer.Indexer, repoman *repomgr.RepoManager, evtm
compactor.Start(bgs)
bgs.compactor = compactor

bgs.httpClient.Timeout = time.Second * 5

return bgs, nil
}

Expand Down

0 comments on commit e1f818e

Please sign in to comment.