Skip to content

Commit

Permalink
fix: retry exit the program
Browse files Browse the repository at this point in the history
  • Loading branch information
KevinSJ committed May 25, 2024
1 parent 9daf0c5 commit 45ca500
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ func getFeedWithRetry(fp *gofeed.Parser, v string) *gofeed.Feed {

for i := 0; i < RETRY_CNT; i++ {
if i > 0 {
log.Fatalf("Retry due to Error GET: %v. \n", err)
log.Printf("Retry due to Error GET: %v. \n", err)
time.Sleep(2000)
}

Expand Down

0 comments on commit 45ca500

Please sign in to comment.