Add trace logs

This commit is contained in:
binwiederhier
2026-06-01 20:30:05 -04:00
parent e18329a17e
commit ae27172f8d
4 changed files with 34 additions and 13 deletions
+4 -5
View File
@@ -748,10 +748,10 @@ func (a *Manager) AllowReservation(username string, topic string) error {
// The found return value indicates whether an ACL entry was found at all.
//
// Priority:
// - specific user beats Everyone
// - longer pattern beats shorter (a more specific rule beats a more general one,
// - Specific user beats Everyone
// - Longer pattern beats shorter (a more specific rule beats a more general one,
// e.g. "test*" > "*")
// - write beats read at equal length
// - Write beats read at equal length
//
// When AccessCacheEnabled is true (config), the lookup is served entirely from
// the in-memory snapshot maintained by accessCache. Otherwise the original SQL
@@ -1634,11 +1634,10 @@ func (a *Manager) maybeProvisionTokens(tx *sql.Tx, provisionUsernames []string,
}
// Close stops background goroutines and closes the underlying database.
// Safe to call multiple times.
func (a *Manager) Close() error {
select {
case <-a.quit:
// already closed
// Already closed
default:
close(a.quit)
}