Skip to content

Commit

Permalink
controlling bg chan
Browse files Browse the repository at this point in the history
  • Loading branch information
tbuchaillot committed Aug 28, 2023
1 parent a09f20e commit 4a66b56
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pumps/sql_aggregate.go
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ func (c *SQLAggregatePump) Init(conf interface{}) error {
shouldRunOnBackground := false
if c.dbType == "postgres" {
shouldRunOnBackground = true
c.backgroundIndexCreated = make(chan bool)
c.backgroundIndexCreated = make(chan bool, 1)
}

// if index doesn't exist, create it
Expand Down

0 comments on commit 4a66b56

Please sign in to comment.