Reduce dispatchers to 2 (by default)

This commit is contained in:
James Mills
2021-02-02 13:36:48 +10:00
parent 26df009e8f
commit e1b0dd173f

View File

@@ -374,7 +374,7 @@ func NewServer(bind string, options ...Option) (*Server, error) {
am := auth.NewManager(auth.NewOptions("/login", "/register"))
tasks := NewDispatcher(10, 100) // TODO: Make this configurable?
tasks := NewDispatcher(2, 10) // TODO: Make this configurable?
pm := passwords.NewScryptPasswords(nil)