Skip to content
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

How to use this is not clear. #8

Open
ghost opened this issue Aug 18, 2018 · 1 comment
Open

How to use this is not clear. #8

ghost opened this issue Aug 18, 2018 · 1 comment

Comments

@ghost
Copy link

ghost commented Aug 18, 2018

In README.md we see an example:

// Create a gossiper
g := NewGossiper("<ip>:<port>", "<unique node id>", "<peer-list>")
// Add peer nodes with whom you want to gossip
g.AddNode("<peer_ip>:<peer_port>")
...
// update self values
g.UpdateSelf("<some_key>", "<any_value>")
// start gossip
g.Start()

However, we have no direction on what package to include. I also went through the files in this repo and I'm not quite sure where NewGossiper is being defined... How are you getting this function exactly?! It's kinda driving me nuts because it's witchcraft if it just works without import . "thing"

@tqin7
Copy link

tqin7 commented Mar 6, 2019

I think NewGossiperImpl() should be used instead of NewGossiper(). It's defined in gossip_test.go.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant