forked from mtusi2026/mtusi2026lab2
fix: classify database outages and restore real HTTP fault checks
This commit is contained in:
@@ -32,5 +32,5 @@ func (s *Store) RevokeSession(ctx context.Context, hash string) error {
|
||||
ctx, cancel := context.WithTimeout(ctx, s.timeout)
|
||||
defer cancel()
|
||||
_, err := s.pool.Exec(ctx, `DELETE FROM sessions WHERE token_hash=@hash`, pgx.StrictNamedArgs{"hash": hash})
|
||||
return err
|
||||
return normalize(err)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user