probe-lab / go-kademlia

Generic Go Kademlia implementation
Other
17 stars 4 forks source link

Add protocol interfaces #96

Closed dennis-tra closed 10 months ago

dennis-tra commented 10 months ago

Changelog:

I removed the Record interface (which was an empty interface anyways) and replaced it with any. Can revert any time if we needed to.

iand commented 10 months ago

Think I would quite like to keep the Record interface even if it is empty for now. The query will need to change to accept a Record that should be put. I'd rather not use any in all the places we refer to records. Record validators might be another use case.