From 4c3dd1330fa5647d079c57a251046322cd6a83fa Mon Sep 17 00:00:00 2001 From: vyzo Date: Wed, 10 Oct 2018 17:39:38 +0300 Subject: [PATCH] fix floodsub id for secondary protocol --- randomsub.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/randomsub.go b/randomsub.go index 86e691f..0ba2a85 100644 --- a/randomsub.go +++ b/randomsub.go @@ -34,7 +34,7 @@ type RandomSubRouter struct { } func (rs *RandomSubRouter) Protocols() []protocol.ID { - return []protocol.ID{RandomSubID, RandomSubID} + return []protocol.ID{RandomSubID, FloodSubID} } func (rs *RandomSubRouter) Attach(p *PubSub) {