matryer / vice

Go channels at horizontal scale (powered by message queues)
https://medium.com/@matryer/introducing-vice-go-channels-across-many-machines-bcac1147d7e2
Apache License 2.0
1.54k stars 79 forks source link

cannot compile example greeter service main.go #13

Closed linkerlin closed 7 years ago

linkerlin commented 7 years ago

github.com/matryer/vice/example/greeter/service

./main.go:36: assignment count mismatch: 2 = 1

joeblew99 commented 7 years ago

me too :)

Context:

i am using brew to install nsq.

x-MacBook-Pro:example apple$ nsqd
[nsqd] 2017/08/01 12:47:02.992398 nsqd v1.0.0-compat (built w/go1.8)
[nsqd] 2017/08/01 12:47:02.992468 ID: 795
[nsqd] 2017/08/01 12:47:02.992501 NSQ: persisting topic/channel metadata to nsqd.dat
[nsqd] 2017/08/01 12:47:02.993954 TCP: listening on [::]:4150
[nsqd] 2017/08/01 12:47:02.994151 HTTP: listening on [::]:4151
^C[nsqd] 2017/08/01 12:49:48.626828 NSQ: persisting topic/channel metadata to nsqd.dat
[nsqd] 2017/08/01 12:49:48.626888 TCP: closing [::]:4150
[nsqd] 2017/08/01 12:49:48.626926 HTTP: closing [::]:4151
[nsqd] 2017/08/01 12:49:48.627437 NSQ: closing topics
[nsqd] 2017/08/01 12:49:48.627462 LOOKUP: closing
[nsqd] 2017/08/01 12:49:48.627463 QUEUESCAN: closing
x-MacBook-Pro:example apple$ nsqd -version
nsqd v1.0.0-compat (built w/go1.8)
x-MacBook-Pro:example apple$ 
joeblew99 commented 7 years ago

easy fix for client and server


    transport := nsq.New()
    /*
        if err != nil {
            log.Fatalln(err)
        }
    */

This is very cool !!