holochain 0.6.1

Holochain, a framework for distributed applications
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use crate::core::ribosome::CallContext;
use crate::core::ribosome::RibosomeT;
use std::sync::Arc;
use wasmer::RuntimeError;
/// No-op: block_agent has been removed from the HDK.
/// This function remains for backward compatibility with existing apps.
pub fn block_agent(
    _ribosome: Arc<impl RibosomeT>,
    _call_context: Arc<CallContext>,
    _input: holochain_zome_types::block::BlockAgentInput,
) -> Result<(), RuntimeError> {
    tracing::warn!(
        "block_agent host function is deprecated and returns without blocking; remove this call from your zome"
    );
    Ok(())
}