livepeer / go-livepeer-basicnet

Basic p2p video streaming for Livepeer
MIT License
18 stars 8 forks source link

Time Cache #49

Closed ericxtang closed 6 years ago

ericxtang commented 6 years ago

Add a cache for outgoing MasterPlaylistReq and MasterPlaylistData messages.

The timecache library is forked from https://github.com/whyrusleeping/timecache. I added a sweep during Has, so that the time duration will be take into account in both Add and Has. https://github.com/whyrusleeping/timecache/compare/master...ericxtang:master

j0sh commented 6 years ago

LGTM, ok for goclient 🚢