libp2p / go-libp2p-pubsub

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

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

Closed MarcoPolo closed 6 months ago

MarcoPolo commented 6 months ago

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