This is creating a large number of goroutines that are requesting a large number of database connections, possibly contributing to the pool getting exhausted Issue: #3
This commit is contained in:
parent
4ead6ba31b
commit
865f11bc09
1 changed files with 8 additions and 6 deletions
|
|
@ -55,12 +55,14 @@ func StartAll(ctx context.Context) error {
|
||||||
|
|
||||||
newOAuthTokenChannel = make(chan struct{}, 10)
|
newOAuthTokenChannel = make(chan struct{}, 10)
|
||||||
|
|
||||||
waitGroup.Add(1)
|
/*
|
||||||
go func() {
|
waitGroup.Add(1)
|
||||||
defer waitGroup.Done()
|
go func() {
|
||||||
refreshFieldseekerData(ctx, newOAuthTokenChannel)
|
defer waitGroup.Done()
|
||||||
log.Debug().Msg("Exiting Fieldseeker refresh goroutine")
|
refreshFieldseekerData(ctx, newOAuthTokenChannel)
|
||||||
}()
|
log.Debug().Msg("Exiting Fieldseeker refresh goroutine")
|
||||||
|
}()
|
||||||
|
*/
|
||||||
waitGroup.Add(1)
|
waitGroup.Add(1)
|
||||||
go func() {
|
go func() {
|
||||||
defer waitGroup.Done()
|
defer waitGroup.Done()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue