-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixed to be compatible with latest gossip API #1
base: master
Are you sure you want to change the base?
Conversation
fixed error with NewManager call
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for fixing this up!
A few minor things to fix up, but then good to go. :)
"time" | ||
|
||
"gossip-demo/demo" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should use the full import path here github.com/discoviking/gossip-demo/demo
. Otherwise it doesn't compile when downloaded with go get
as is standard.
|
||
func main() { | ||
var doCall = 0 | ||
flag.IntVar(&doCall, "call",0, "do a test call") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we change this to be two flag.Bool
s called "-server" and "-client", or "-caller" and "-callee"? I think that would be a bit clearer.
|
||
In another shell window, run "go run main.go -call 1" to do a test call | ||
*/ | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To match style can we change this to be //
style comments, and remove the newline between the comment and the function?
Note that while trying to run the gossip-demo I also encountered some nil errors in the latest master version of gossip. I forked it into attesaarela/gossip and made some fixes and seems to run with that version. Also made a pull request on that fork of gossip.