2
0

Update pgconn for renamed CleanupChan

This commit is contained in:
Jack Christensen
2020-08-20 22:09:50 -05:00
parent 39b096d01e
commit 997a16dbc5
3 changed files with 4 additions and 2 deletions
+1 -1
View File
@@ -194,7 +194,7 @@ func ConnectConfig(ctx context.Context, config *Config) (*Pool, error) {
conn := value.(*connResource).conn
conn.Close(ctx)
select {
case <-conn.PgConn().CleanupChan():
case <-conn.PgConn().CleanupDone():
case <-ctx.Done():
}
cancel()