go-libp2p-pubsub/mcache.go

17 lines
230 B
Go
Raw Normal View History

2018-02-19 14:13:18 +00:00
package floodsub
import (
pb "github.com/libp2p/go-floodsub/pb"
)
func NewMessageCache(win int) *MessageCache {
return &MessageCache{}
}
type MessageCache struct {
}
func (mc *MessageCache) Add(msg *pb.Message) {
// TODO
}