1
0
Fork 0

Make function names more consistent

This commit is contained in:
Gregory Eremin 2015-10-17 04:11:29 +03:00
parent 290b1dfd4e
commit 9141fd9f80
2 changed files with 3 additions and 3 deletions

View File

@ -59,8 +59,8 @@ func Shutdown() {
}
}
// MakeStream creates a satan.Streamer implementation for Kafka messaging queue.
func MakeStream(consumer, topic string) satan.Streamer {
// Subscribe creates a satan.Streamer implementation for Kafka messaging queue.
func Subscribe(consumer, topic string) satan.Streamer {
c, ok := consumers[consumer]
if !ok {
panic(fmt.Errorf("Consumer %q has no config", consumer))

View File

@ -30,7 +30,7 @@ func main() {
defer kafka.Shutdown()
s := satan.Summon()
s.SubscribeFunc = kafka.MakeStream
s.SubscribeFunc = kafka.Subscribe
s.AddDaemon(&daemons.NumberPrinter{})
s.AddDaemon(&daemons.PriceConsumer{})