Skip to content

Commit

Permalink
fix examples
Browse files Browse the repository at this point in the history
  • Loading branch information
colinsurprenant committed Nov 17, 2011
1 parent fc3bedc commit 0034f98
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion examples/simple/exclamation_topology.rb
Expand Up @@ -11,7 +11,7 @@ class ExclamationTopology < RedStorm::SimpleTopology
source TestWordSpout, :shuffle
end

bolt ExclamationBolt, :id => :exclamation_bolt2, :parallelism => 2 do
bolt ExclamationBolt, :id => :ignore, :parallelism => 2 do
source ExclamationBolt, :shuffle
end

Expand Down
6 changes: 3 additions & 3 deletions examples/simple/split_sentence_bolt.rb
Expand Up @@ -10,19 +10,19 @@ class SplitSentenceBolt < RedStorm::SimpleBolt
# block declaration style no auto-emit
#
# on_receive :emit => false do |tuple|
# tuple.getString(0).split(' ').each{|w| emit(w)}
# tuple.getString(0).split(' ').each{|w| unanchored_emit(w)}
# end

# alternate declaration style using on_receive method
#
# on_receive :emit => false
# on_receive :emit => true
# def on_receive(tuple)
# tuple.getString(0).split(' ').map{|w| [w]}
# end

# alternate declaration style using any specific method
#
# on_receive :my_method, :emit => false
# on_receive :my_method, :emit => true
# def my_method(tuple)
# tuple.getString(0).split(' ').map{|w| [w]}
# end
Expand Down

0 comments on commit 0034f98

Please sign in to comment.