Skip to main content

run

Function run 

Source
pub async fn run() -> Result<()>
Expand description

Run this node

This function is auto-generated by the #[derive(Node)] macro.

§Configuration

Configuration is loaded with the following fallback chain:

  1. File path from environment variable: #config_env
  2. Default file path: #config_path
  3. Environment variables with prefix: #env_prefix
  4. Default configuration

§Examples

# Run with default config
./my_node

# Run with custom config file
MY_NODE_CONFIG=custom.yaml ./my_node

# Run with environment variable overrides
MY_NODE_FPS=60 ./my_node