不要怂,就是干,撸起袖子干!

Commit 8b2f6a49 by Sascha Depold

minor changes

1 parent d75829c1
...@@ -37,7 +37,7 @@ ConnectorManager.prototype.afterQuery = function() { ...@@ -37,7 +37,7 @@ ConnectorManager.prototype.afterQuery = function() {
} }
ConnectorManager.prototype.__defineGetter__('tooManyRequests', function() { ConnectorManager.prototype.__defineGetter__('tooManyRequests', function() {
return (this.clientRequests > 30) return (this.clientRequests > 50)
}) })
ConnectorManager.prototype.__defineGetter__('hasNoConnections', function() { ConnectorManager.prototype.__defineGetter__('hasNoConnections', function() {
......
...@@ -6,9 +6,6 @@ var Utils = require("./utils") ...@@ -6,9 +6,6 @@ var Utils = require("./utils")
var Sequelize = module.exports = function(database, username, password, options) { var Sequelize = module.exports = function(database, username, password, options) {
options = options || {} options = options || {}
var ModelManager = require("./model-manager")
this.modelManager = new ModelManager(this)
Utils._.reject(options, function(_, key) { return ["host", "port", "disableTableNameModification"].indexOf(key) > -1 }) Utils._.reject(options, function(_, key) { return ["host", "port", "disableTableNameModification"].indexOf(key) > -1 })
this.options = options this.options = options
...@@ -19,6 +16,8 @@ var Sequelize = module.exports = function(database, username, password, options) ...@@ -19,6 +16,8 @@ var Sequelize = module.exports = function(database, username, password, options)
host : options.host || 'localhost', host : options.host || 'localhost',
port : options.port || 3306 port : options.port || 3306
} }
this.modelManager = new (require("./model-manager"))(this)
this.connectorManager = new (require('./connector-manager'))(this.config) this.connectorManager = new (require('./connector-manager'))(this.config)
} }
Sequelize.Utils = Utils Sequelize.Utils = Utils
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!