fn handle_legacy_direct_deploy_request(&self, deploy_hash: DeployHash) -> Option<Deploy> {
        // NOTE: This function was formerly called `get_deploy_for_peer` and used to create an event
        // directly. This caused a dependency of the storage component on networking functionality,
        // which is highly problematic. For this reason, the code to send a reply has been moved to
        // the dispatching code (which should be removed anyway) as to not taint the interface.
        self.env
            .begin_ro_txn()
            .map_err(Into::into)
            .and_then(|mut tx| tx.get_value(self.deploy_db, &deploy_hash))
            .expect("legacy direct deploy request failed")
    }
/// Retrieves a deploy from the deploy store to handle a legacy network request.
Retrieves a deploy from the deploy store to handle a legacy network request.
Retrieves a deploy from the deploy store to handle a legacy network request .
fn handle_legacy_direct_deploy_request(&self, deploy_hash: DeployHash) -> Option<Deploy> {
        // NOTE: This function was formerly called `get_deploy_for_peer` and used to create an event
        // directly. This caused a dependency of the storage component on networking functionality,
        // which is highly problematic. For this reason, the code to send a reply has been moved to
        // the dispatching code (which should be removed anyway) as to not taint the interface.
        self.env
            .begin_ro_txn()
            .map_err(Into::into)
            .and_then(|mut tx| tx.get_value(self.deploy_db, &deploy_hash))
            .expect("legacy direct deploy request failed")
    }
fn handle_legacy_direct_deploy_request ( & self , deploy_hash : DeployHash ) -> Option < Deploy > { // NOTE: This function was formerly called `get_deploy_for_peer` and used to create an event // directly. This caused a dependency of the storage component on networking functionality, // which is highly problematic. For this reason, the code to send a reply has been moved to // the dispatching code (which should be removed anyway) as to not taint the interface. self . env . begin_ro_txn ( ) . map_err ( Into :: into ) . and_then ( | mut tx | tx . get_value ( self . deploy_db , & deploy_hash ) ) . expect ( " " ) }
Retrieves a deploy from the deploy store to handle a legacy network request.
Retrieves a deploy from the deploy store to handle a legacy network request .
&self
deploy_hash
DeployHash
&self
deploy_hash
DeployHash