tracker/server/store/middleware/swarm
2016-05-17 00:49:16 -04:00
..
README.md middleware: add swarm interaction 2016-05-17 00:49:16 -04:00
swarm.go middleware: add swarm interaction 2016-05-17 00:49:16 -04:00

Swarm Interaction Middleware

This package provides the announce middleware that modifies peer data stored in the store package.

store_swarm_interaction

The store_swarm_interaction middleware updates the data stored in the peerStore based on the announce.

Important things to notice

It is recommended to have this middleware run before the store_response middleware. The store_response middleware assumes the store to be already updated by the announce.