Skip to content

Commit

Permalink
upgrade pomelo version & generic-pool version
Browse files Browse the repository at this point in the history
  • Loading branch information
NextZeus committed Feb 17, 2017
1 parent e98c2df commit 87f5dbd
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions game-server/app/dao/mysql/dao-pool.js
@@ -1,14 +1,14 @@
var _poolModule = require('generic-pool');

var mysql = require('mysql');
/*
* Create mysql connection pool.
*/
var createMysqlPool = function(app) {
var mysqlConfig = app.get('mysql');
return _poolModule.Pool({
return _poolModule.createPool({
name: 'mysql',
create: function(callback) {
var mysql = require('mysql');

var client = mysql.createConnection({
host: mysqlConfig.host,
user: mysqlConfig.user,
Expand Down
4 changes: 2 additions & 2 deletions game-server/package.json
Expand Up @@ -6,9 +6,9 @@
"express": "2.5.2"
, "connect": ">=0.0.1"
, "socket.io": ">=0.9.6"
, "generic-pool": ">=1.0.9"
, "generic-pool": "*"
, "mysql": ">=2.0"
, "pomelo": "~0.8.0"
, "pomelo": "~2.2.0"
, "async": ">=0.0.1"
, "socket.io-client" : ">=0.9.6"
, "pomelo-aoi" : ">=0.3.4"
Expand Down
2 changes: 1 addition & 1 deletion web-server/package.json
Expand Up @@ -8,7 +8,7 @@
, "connect": ">=0.0.1"
, "ejs": "0.8.3"
, "generic-pool": ">=1.0.9"
, "mysql": ">=2.0"
, "mysql": "*"
}
}

0 comments on commit 87f5dbd

Please sign in to comment.