Skip to content

Commit

Permalink
chore: cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
isabelroses committed Apr 17, 2024
1 parent 0a5d04f commit 531b8cc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/fetch.go
Original file line number Diff line number Diff line change
Expand Up @@ -153,12 +153,12 @@ func GetAllContent(preferCache bool) Feeds {
}

func fetchContent(url string, preferCache bool, wg *sync.WaitGroup, ch chan<- Feed) {
// Decrement the wait group counter when the function exits
defer wg.Done()

// Call the GetContentForURL function
posts := GetContentForURL(url, preferCache)

// Decrement the wait group counter when the function exits
defer wg.Done()

// Send the response through the channel
ch <- posts
}

0 comments on commit 531b8cc

Please sign in to comment.