Skip to content

Commit

Permalink
Incorrect plugin register for Hapi 8.x
Browse files Browse the repository at this point in the history
Hapi now uses `register` instead of `plugin` in 8.x
  • Loading branch information
chriswiggins committed Mar 19, 2015
1 parent df8c60a commit 5e372ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -42,7 +42,7 @@ var server = new Hapi.Server();

var hapiStatsdConfig = {};

server.register({ plugin: require('hapi-statsd'), options: hapiStatsdConfig }, function(err) {
server.register({ register: require('hapi-statsd'), options: hapiStatsdConfig }, function(err) {
if (err) {
console.log('error', 'Failed loading plugin: hapi-statsd');
}
Expand Down

0 comments on commit 5e372ec

Please sign in to comment.