Closed linkerlin closed 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$
easy fix for client and server
transport := nsq.New()
/*
if err != nil {
log.Fatalln(err)
}
*/
This is very cool !!
github.com/matryer/vice/example/greeter/service
./main.go:36: assignment count mismatch: 2 = 1