示例#1
0
// New returns an initialized Gossip node
// which identifies itself with the given ip
func New(ip string, selfNodeId types.NodeId) Gossiper {
	g := new(proto.GossiperImpl)
	g.Init(ip, selfNodeId)
	return g
}
示例#2
0
// New returns an initialized Gossip node
// which identifies itself with the given ip
func New(ip string, selfNodeId types.NodeId, genNumber uint64) Gossiper {
	g := new(proto.GossiperImpl)
	g.Init(ip, selfNodeId, genNumber)
	return g
}