Skip to content

Commit

Permalink
Merge pull request #451 from Parsely/redis-example-fixes
Browse files Browse the repository at this point in the history
Import fixes for redis examples
  • Loading branch information
flavius-popan committed Oct 17, 2018
2 parents f3fb5a9 + e241cde commit 361088f
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,5 @@ _resources/
.tox/
.python-version
.*.un~

\.idea/
9 changes: 4 additions & 5 deletions examples/redis/topologies/wordcount_mem.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,12 @@
Word count topology (in memory)
"""

from src.bolts import WordCountBolt
from src.spouts import WordSpout
from streamparse import Grouping, Topology

from bolts import WordCountBolt
from spouts import WordSpout


class WordCount(Topology):
word_spout = WordSpout.spec()
count_bolt = WordCountBolt.spec(inputs={word_spout: Grouping.fields('word')},
par=2)
count_bolt = WordCountBolt.spec(
inputs={word_spout: Grouping.fields('word')}, par=2)
5 changes: 2 additions & 3 deletions examples/redis/topologies/wordcount_redis.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,10 @@
Word count topology (in Redis)
"""

from src.bolts import RedisWordCountBolt
from src.spouts import WordSpout
from streamparse import Topology

from bolts import RedisWordCountBolt
from spouts import WordSpout


class WordCount(Topology):
word_spout = WordSpout.spec()
Expand Down

0 comments on commit 361088f

Please sign in to comment.