Allow upper case characters in queue name

This commit is contained in:
Ken Hibino
2021-07-15 06:12:13 -07:00
parent c0ae62499f
commit 46b23d6495
5 changed files with 18 additions and 13 deletions

View File

@@ -295,6 +295,9 @@ func NewServer(r RedisConnOpt, cfg Config) *Server {
}
queues := make(map[string]int)
for qname, p := range cfg.Queues {
if err := base.ValidateQueueName(qname); err != nil {
continue // ignore invalid queue names
}
if p > 0 {
queues[qname] = p
}