libp2p / go-libp2p-pubsub

The PubSub implementation for go-libp2p
https://github.com/libp2p/specs/tree/master/pubsub
Other
309 stars 178 forks source link

fix: Don't bother parsing an empty slice #556

Closed MarcoPolo closed 2 months ago

MarcoPolo commented 2 months ago

A slight optimization if we know there's nothing to parse.