Check a ledger operation against the types its binding carries, refusing a ledger bound with none (issue 1966 T2)

This commit is contained in:
2026-11-03 15:15:58 +01:00
parent fadc73f73b
commit 5a9e997349
5 changed files with 25 additions and 45 deletions
-5
View File
@@ -242,11 +242,6 @@ func WithLedgerWriters(writer func(module string) (*bus.Conn, error)) Option {
return func(c *consumers) { c.ledgers.writer = writer }
}
// WithLedgerTypes gives the runtime where it reads a ledger's types (ledgers.go).
func WithLedgerTypes(types LedgerTypes) Option {
return func(c *consumers) { c.ledgers.types = types }
}
// Run launches, binds and serves, and serves each module's bundle again when it appears, changes or
// goes, with no restart. It answers a stop function.
func Run(conn *bus.Conn, served []Served, envs map[string]map[string]string, logf func(string, ...any), opts ...Option) (func(), error) {