// Check if the context is expired.
select
{
default
:
case
<-ctx.Done():
db.mu.Unlock()
return
nil, ctx.Err()
}
Go\src\database\sql\sql.go
// Check if the context is expired.
select
{
default
:
case
<-ctx.Done():
db.mu.Unlock()
return
nil, ctx.Err()
}
Go\src\database\sql\sql.go