permit encoding of GossipData into multiple messages

This commit is contained in:
Matthias Radestock committed 2015-06-15 11:14:24 +01:00
1 parent 94220f22b2
commit 0b3584a355
5 files changed
+20 -13

No files matched your search

+2 -2
View File
@@ -435,8 +435,8 @@ func (d *ipamGossipData) Merge(other router.GossipData) {
// no-op
}
func (d *ipamGossipData) Encode() []byte {
return d.alloc.Encode()
func (d *ipamGossipData) Encode() [][]byte {
return [][]byte{d.alloc.Encode()}
}
// Gossip returns a GossipData implementation, which in this case always