lib/tobox/plugins/stats.rb in tobox-0.4.1 vs lib/tobox/plugins/stats.rb in tobox-0.4.2

- old
+ new

@@ -32,10 +32,10 @@ @error_handlers = Array(config.lifecycle_events[:error_worker]) @max_attempts = config[:max_attempts] - @db = Sequel.connect(config.database.opts.merge(single_threaded: true)) + @db = Sequel.connect(config.database.opts.merge(max_connections: 1)) Array(config.lifecycle_events[:database_connect]).each { |cb| cb.call(@db) } @outbox_table = config[:table] @outbox_ds = @db[@outbox_table]