Skip to content

Commit

Permalink
[fix doc] add missing returns
Browse files Browse the repository at this point in the history
  • Loading branch information
jcrugzz committed Apr 9, 2014
1 parent f54c314 commit 78687de
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Expand Up @@ -30,7 +30,7 @@ Here is a simple example of a [Reactor](#reactors) server that will send an emai
type: 'udp',
reactors: [
function (socket) {
socket
return socket
.pipe(godot.where('service', '*/health/heartbeat'))
.pipe(godot.expire(1000 * 60))
.pipe(godot.email({ to: 'user@host.com' }))
Expand Down Expand Up @@ -112,7 +112,7 @@ var godot = require('godot');
// then sends them in an email
//
var rollup = function (socket) {
socket
return socket
.pipe(godot.rollup(1000 * 60 * 5, 10000))
.pipe(godot.email({ to: 'me@nodejitsu.com' }))
}
Expand All @@ -123,7 +123,7 @@ var rollup = function (socket) {
//

var scalingRollup = function (socket) {
socket
return socket
.pipe(godot.rollup(function (period) {
if(period < 12) {
return 1000 * 60 * 5;
Expand Down

0 comments on commit 78687de

Please sign in to comment.