mirror of
https://github.com/kevin-DL/services.git
synced 2026-01-17 21:34:56 +00:00
shift to 1 minute crawling
This commit is contained in:
@@ -62,7 +62,7 @@ func NewFeeds(postsService posts.PostsService) *Feeds {
|
|||||||
|
|
||||||
func (e *Feeds) crawl() {
|
func (e *Feeds) crawl() {
|
||||||
e.fetchAll()
|
e.fetchAll()
|
||||||
tick := time.NewTicker(1 * time.Hour)
|
tick := time.NewTicker(1 * time.Minute)
|
||||||
for _ = range tick.C {
|
for _ = range tick.C {
|
||||||
e.fetchAll()
|
e.fetchAll()
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user