This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var fs = require('fs'); | |
/* | |
* Yeah, this is the database engine. It's pretty bad, uses files to store peers. | |
* Should be easy to rewrite to use SQL instead. | |
* | |
* Yes, sometimes collisions may occur and screw the DB over. It might or might not | |
* recover by itself. | |
*/ | |
var DB; |