nobody

`sim.Nobody` was used where a node is needed.

run error, shown by synod run.

sim.Nobody stands for no node at all. It is fine as a value to keep or to compare, but sending to it, crashing, restarting or removing it, naming it in net.Partition or net.DropNext, delivering to it, or reading a node field of it has nothing to act on.

Example

Run this program to see the diagnostic.

# package main
use std/sim

define main
  sim.Crash sim.Nobody

Diagnostic

failed at 0s: p/main.synod:5:3: error[nobody]: sim.Crash of sim.Nobody

Fix

Name a real node, such as one made with `sim.Spawn`.

# package main
use example.com/explain/p
use std/sim

define main
  set a to (sim.Spawn p)
  sim.Crash a
# package p
Node has
  set Ready to false