node/docfetcher.js
// tell the connections in awaiting the document is unavailable
tell the connections in awaiting the document is unavailable
tell the connections in awaiting the document is unavailable
function unavailable(hash){
    var self=this;
    this.docs_being_fetched[hash].awaiting.forEach(function(other_id){
        process.nextTick(function(){
            self.conmgr.send(other_id,
                             JSON.stringify({ 'response' : 'UNAVAILABLE', 
                                              'hash' : hash }));
        });
    });
    delete this.docs_being_fetched[hash];
}
function unavailable ( hash ) { var self = this ; this . docs_being_fetched [ hash ] . awaiting . forEach ( function ( other_id ) { process . nextTick ( function ( ) { self . conmgr . send ( other_id , JSON . stringify ( { 'response' : 'UNAVAILABLE' , 'hash' : hash } ) ) ; } ) ; } ) ; delete this . docs_being_fetched [ hash ] ; }
tell the connections in awaiting the document is unavailable
tell the connections in awaiting the document is unavailable