Skip to content

Commit

Permalink
Fix require call and missing semicolon
Browse files Browse the repository at this point in the history
  • Loading branch information
sork committed Apr 6, 2012
1 parent b49c329 commit 8d9856e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion server/js/metrics.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,9 @@ module.exports = Metrics = Class.extend({
var self = this;

this.config = config;
this.client = new require("memcache").Client(config.memcached_port, config.memcached_host),
this.client = new (require("memcache")).Client(config.memcached_port, config.memcached_host);
this.client.connect();

this.isReady = false;

this.client.on('connect', function() {
Expand Down

0 comments on commit 8d9856e

Please sign in to comment.